mirror of https://github.com/adamdruppe/arsd.git
better command line control specialness
This commit is contained in:
parent
cc765ced2d
commit
fa500f2774
4
cgi.d
4
cgi.d
|
@ -808,7 +808,7 @@ class Cgi {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// it is an argument of some sort
|
// it is an argument of some sort
|
||||||
if(requestMethod == Cgi.RequestMethod.POST || requestMethod == Cgi.RequestMethod.PATCH || requestMethod == Cgi.RequestMethod.PUT) {
|
if(requestMethod == Cgi.RequestMethod.POST || requestMethod == Cgi.RequestMethod.PATCH || requestMethod == Cgi.RequestMethod.PUT || requestMethod == Cgi.RequestMethod.CommandLine) {
|
||||||
auto parts = breakUp(arg);
|
auto parts = breakUp(arg);
|
||||||
_post[parts[0]] ~= parts[1];
|
_post[parts[0]] ~= parts[1];
|
||||||
allPostNamesInOrder ~= parts[0];
|
allPostNamesInOrder ~= parts[0];
|
||||||
|
@ -1017,7 +1017,7 @@ class Cgi {
|
||||||
// FIXME: DOCUMENT_ROOT?
|
// FIXME: DOCUMENT_ROOT?
|
||||||
|
|
||||||
// FIXME: what about PUT?
|
// FIXME: what about PUT?
|
||||||
if(requestMethod == RequestMethod.POST || requestMethod == Cgi.RequestMethod.PATCH || requestMethod == Cgi.RequestMethod.PUT) {
|
if(requestMethod == RequestMethod.POST || requestMethod == Cgi.RequestMethod.PATCH || requestMethod == Cgi.RequestMethod.PUT || requestMethod == Cgi.RequestMethod.CommandLine) {
|
||||||
version(preserveData) // a hack to make forwarding simpler
|
version(preserveData) // a hack to make forwarding simpler
|
||||||
immutable(ubyte)[] data;
|
immutable(ubyte)[] data;
|
||||||
size_t amountReceived = 0;
|
size_t amountReceived = 0;
|
||||||
|
|
Loading…
Reference in New Issue