fix broken stuff from dmd update

This commit is contained in:
Adam D. Ruppe 2013-11-08 21:06:53 -05:00
parent b644eabe45
commit 55eafc2705
1 changed files with 4 additions and 5 deletions

9
cgi.d
View File

@ -401,7 +401,7 @@ class Cgi {
pathInfo = arg; pathInfo = arg;
else { else {
pathInfo = arg[0 .. idx]; pathInfo = arg[0 .. idx];
queryString = arg[idx + 1 .. $]; _queryString = arg[idx + 1 .. $];
} }
} else { } else {
// it is an argument of some sort // it is an argument of some sort
@ -545,7 +545,7 @@ class Cgi {
} }
get = getGetVariables(); get = getGetVariables(queryString);
auto ugh = decodeVariables(queryString); auto ugh = decodeVariables(queryString);
getArray = assumeUnique(ugh); getArray = assumeUnique(ugh);
@ -1282,7 +1282,7 @@ class Cgi {
pathInfo = requestUri[pathInfoStarts..question]; pathInfo = requestUri[pathInfoStarts..question];
} }
get = cast(string[string]) getGetVariables(); get = cast(string[string]) getGetVariables(queryString);
auto ugh = decodeVariables(queryString); auto ugh = decodeVariables(queryString);
getArray = cast(string[][string]) assumeUnique(ugh); getArray = cast(string[][string]) assumeUnique(ugh);
@ -1413,7 +1413,6 @@ class Cgi {
this.keepAliveRequested = keepAliveRequested; this.keepAliveRequested = keepAliveRequested;
this.acceptsGzip = acceptsGzip; this.acceptsGzip = acceptsGzip;
this.cookie = cookie; this.cookie = cookie;
} }
BufferedInputRange idlol; BufferedInputRange idlol;
@ -1443,7 +1442,7 @@ class Cgi {
// this function only exists because of the with_cgi_packed thing, which is // this function only exists because of the with_cgi_packed thing, which is
// a filthy hack I put in here for a work app. Which still depends on it, so it // a filthy hack I put in here for a work app. Which still depends on it, so it
// stays for now. But I want to remove it. // stays for now. But I want to remove it.
private immutable(string[string]) getGetVariables() { private immutable(string[string]) getGetVariables(in string queryString) {
if(queryString.length) { if(queryString.length) {
auto _get = decodeVariablesSingle(queryString); auto _get = decodeVariablesSingle(queryString);