diff options
author | Ralph Amissah <ralph.amissah@gmail.com> | 2025-08-28 11:05:29 -0400 |
---|---|---|
committer | Ralph Amissah <ralph.amissah@gmail.com> | 2025-08-28 11:05:29 -0400 |
commit | 777102b2a42c20b5fc14fdf989d214c2376fe711 (patch) | |
tree | cb7aeed8f408a895d82ef5a4166e7d65b730fa38 /src/ext_depends/arsd/cgi.d | |
parent | dub 1.40.0, llvm 20 (diff) |
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 |