forked from cory/tildefriends
		
	Go back to allowing automatic guest sessions by default. WebSockets actually make this work better.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3204 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
		@@ -288,10 +288,9 @@ function updateLogin() {
 | 
			
		||||
		} else {
 | 
			
		||||
			a.setAttribute("href", "/login/logout?return=" + encodeURIComponent(url() + hash()));
 | 
			
		||||
		}
 | 
			
		||||
	} else if (window.location.href.indexOf("?guest=1") != -1) {
 | 
			
		||||
		window.location.href = "/login?submit=Proceed+as+Guest&return=" + encodeURIComponent(url() + hash());
 | 
			
		||||
	} else {
 | 
			
		||||
		window.location.href = "/login?return=" + encodeURIComponent(url() + hash());
 | 
			
		||||
		a.appendChild(document.createTextNode("login"));
 | 
			
		||||
		a.setAttribute("href", "/login?return=" + encodeURIComponent(url() + hash()));
 | 
			
		||||
	}
 | 
			
		||||
	login.appendChild(a);
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -332,9 +332,9 @@ function handleConnection(client) {
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	function finish() {
 | 
			
		||||
		var requestObject = new Request(request[0], request[1], request[2], headers, body, client);
 | 
			
		||||
		var response = new Response(requestObject, client);
 | 
			
		||||
		try {
 | 
			
		||||
			var requestObject = new Request(request[0], request[1], request[2], headers, body, client);
 | 
			
		||||
			var response = new Response(requestObject, client);
 | 
			
		||||
			handleRequest(requestObject, response)
 | 
			
		||||
			if (client.isConnected) {
 | 
			
		||||
				reset();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user