mirror of https://github.com/adamdruppe/arsd.git
catchall should not be wrapped in envelope
This commit is contained in:
parent
03bde3677f
commit
7c13ec8637
8
web.d
8
web.d
|
@ -176,6 +176,8 @@ class ApiProvider {
|
||||||
}
|
}
|
||||||
|
|
||||||
_errorMessageForCatchAll = errorMessage;
|
_errorMessageForCatchAll = errorMessage;
|
||||||
|
|
||||||
|
_catchAll(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -797,6 +799,10 @@ void run(Provider)(Cgi cgi, Provider instantiation, int pathInfoStartingPoint =
|
||||||
cgi.pathInfo[pathInfoStartingPoint + 1..$],
|
cgi.pathInfo[pathInfoStartingPoint + 1..$],
|
||||||
funName,
|
funName,
|
||||||
errorMessage);
|
errorMessage);
|
||||||
|
|
||||||
|
envelopeFormat = "no-processing";
|
||||||
|
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
assert(fun !is null);
|
assert(fun !is null);
|
||||||
|
@ -877,6 +883,8 @@ void run(Provider)(Cgi cgi, Provider instantiation, int pathInfoStartingPoint =
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
switch(envelopeFormat) {
|
switch(envelopeFormat) {
|
||||||
|
case "no-processing":
|
||||||
|
break;
|
||||||
case "redirect":
|
case "redirect":
|
||||||
auto redirect = cgi.request("_arsd_redirect_location", cgi.referrer);
|
auto redirect = cgi.request("_arsd_redirect_location", cgi.referrer);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue