diff options
Diffstat (limited to 'src/ext_depends/arsd/cgi.d')
-rw-r--r-- | src/ext_depends/arsd/cgi.d | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ext_depends/arsd/cgi.d b/src/ext_depends/arsd/cgi.d index 0af9f25..d1d2ad1 100644 --- a/src/ext_depends/arsd/cgi.d +++ b/src/ext_depends/arsd/cgi.d @@ -2735,7 +2735,7 @@ class Cgi { } // closing the last chunk... - if(nph && rawDataOutput !is null && responseChunked) + if(requestMethod != RequestMethod.HEAD && nph && rawDataOutput !is null && responseChunked) rawDataOutput(cast(const(ubyte)[]) "0\r\n\r\n"); if(flushDelegate) @@ -3132,7 +3132,7 @@ struct Uri { string scheme; /// e.g. "http" in "http://example.com/" string userinfo; /// the username (and possibly a password) in the uri - string host; /// the domain name + string host; /// the domain name. note it may be an ip address or have percent encoding too. int port; /// port number, if given. Will be zero if a port was not explicitly given string path; /// e.g. "/folder/file.html" in "http://example.com/folder/file.html" string query; /// the stuff after the ? in a uri |