浏览代码

fix : use args[0] for URI as well (instead of /?+arg[0] )

Nicolas Cannasse 18 年之前
父节点
当前提交
dd10737803
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      std/neko/Web.hx

+ 1 - 1
std/neko/Web.hx

@@ -318,7 +318,7 @@ class Web {
 			_get_host_name = function() { return untyped "localhost".__s; };
 			_get_client_ip = function() { return untyped "127.0.0.1".__s; };
 			_get_uri = function() {
-				return untyped (if( a0 == null ) "/" else "/?"+a0).__s;
+				return untyped (if( a0 == null ) "/" else a0).__s;
 			};
 			_cgi_redirect = function(v) { Lib.print("Location: "+v+"\n"); };
 			_cgi_set_header = function(h,v) { };