ソースを参照

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_host_name = function() { return untyped "localhost".__s; };
 			_get_client_ip = function() { return untyped "127.0.0.1".__s; };
 			_get_client_ip = function() { return untyped "127.0.0.1".__s; };
 			_get_uri = function() {
 			_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_redirect = function(v) { Lib.print("Location: "+v+"\n"); };
 			_cgi_set_header = function(h,v) { };
 			_cgi_set_header = function(h,v) { };