Skip to content

Commit

Permalink
getParams fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KaalH! committed May 6, 2011
1 parent ef13411 commit fc617b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/cpp/Web.hx
Expand Up @@ -70,7 +70,7 @@ class Web {
var ret = new Hash<String>();
var a:Array<String> = Web.hxfcgi_getParams(Web.request);
for (x in 0...(a.length >> 1))
ret.set(a[2*x],(a[2*x+1].length > 0 ) ? StringTools.urlDecode(a[2*x+1]) : null);
if(a[2*x].length > 0) ret.set(a[2*x],(a[2*x+1].length > 0 ) ? StringTools.urlDecode(a[2*x+1]) : null);
return ret;
}

Expand Down
2 changes: 1 addition & 1 deletion lib/neko/Web.hx
Expand Up @@ -71,7 +71,7 @@ class Web {
var ret = new Hash<String>();
var a:Array<String> = Lib.nekoToHaxe(Web.hxfcgi_getParams(Web.request));
for (x in 0...(a.length >> 1))
ret.set(a[2*x],(a[2*x+1].length > 0 ) ? StringTools.urlDecode(a[2*x+1]) : null);
if(a[2*x].length > 0) ret.set(a[2*x],(a[2*x+1].length > 0 ) ? StringTools.urlDecode(a[2*x+1]) : null);
return ret;
}

Expand Down

0 comments on commit fc617b8

Please sign in to comment.