summaryrefslogtreecommitdiffhomepage
path: root/src/ext_depends/arsd/cgi.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2025-08-28 11:05:29 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2025-08-28 11:05:29 -0400
commit777102b2a42c20b5fc14fdf989d214c2376fe711 (patch)
treecb7aeed8f408a895d82ef5a4166e7d65b730fa38 /src/ext_depends/arsd/cgi.d
parentdub 1.40.0, llvm 20 (diff)
src/ext_deplends updated arsd:{core.d,cgi.d}HEADmain
Diffstat (limited to 'src/ext_depends/arsd/cgi.d')
-rw-r--r--src/ext_depends/arsd/cgi.d4
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