|  | @@ -2,8 +2,8 @@ resp = "{";
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  method = mg.request_info.request_method
 |  |  method = mg.request_info.request_method
 | 
											
												
													
														|  |  uri = mg.request_info.uri
 |  |  uri = mg.request_info.uri
 | 
											
												
													
														|  | -query = os.getenv("QUERY_STRING");
 |  | 
 | 
											
												
													
														|  | -datalen = os.getenv("CONTENT_LENGTH");
 |  | 
 | 
											
												
													
														|  | 
 |  | +query = mg.request_info.query_string
 | 
											
												
													
														|  | 
 |  | +datalen = nil -- TODO: "CONTENT_LENGTH" !
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  if method then
 |  |  if method then
 | 
											
												
													
														|  |    resp = resp .. '"method" : "' .. method .. '", ';
 |  |    resp = resp .. '"method" : "' .. method .. '", ';
 | 
											
										
											
												
													
														|  | @@ -24,7 +24,7 @@ resp = resp .. "}";
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -mg.write("HTTP/1.0 200 OK\n")
 |  | 
 | 
											
												
													
														|  | 
 |  | +mg.write("HTTP/1.1 200 OK\n")
 | 
											
												
													
														|  |  mg.write("Connection: close\n")
 |  |  mg.write("Connection: close\n")
 | 
											
												
													
														|  |  mg.write("Content-Type: text/html\n")
 |  |  mg.write("Content-Type: text/html\n")
 | 
											
												
													
														|  |  mg.write("Cache-Control: no-cache\n")
 |  |  mg.write("Cache-Control: no-cache\n")
 |