aboutsummaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-10-16 20:42:54 +0200
committerChristian Grothoff <christian@grothoff.org>2018-10-16 20:44:39 +0200
commit9199e5aa3ac29235ee0326bf6ebc70882c63c268 (patch)
treedd4bcd6c8a1a6b2cdb7de3e5278b306127befcec /ChangeLog
parentf7ab8b59a30cbd3c4e1b09906df2d4ffdff0472e (diff)
downloadlibmicrohttpd-9199e5aa3ac29235ee0326bf6ebc70882c63c268.tar.gz
libmicrohttpd-9199e5aa3ac29235ee0326bf6ebc70882c63c268.zip
From: Gauthier Haderer <ghaderer@wyplay.com>
Date: Mon, 15 Oct 2018 14:11:39 +0200 Subject: [PATCH] Add response flag to force version to 1.0 and maintain connection management. The existing MHD_RF_HTTP_VERSION_1_0_ONLY flag already changes MHD's behavior to apply HTTP 1.0 rules for connection management. When enabled, MHD sends a response using the same version as used in the request (is this normal?). What I want is MHD responding as a HTTP 1.0 server with support for connection management headers would do. This is what the MHD_RF_HTTP_VERSION_1_0_RESPONSE response flag is for. You can even combine it with MHD_RF_HTTP_VERSION_1_0_ONLY to change the response's HTTP version while maintaining strict compliance with HTTP 1.0 regarding connection management. This solution is not perfect as this flag is set on the response which is created after header processing. So MHD will behave as a HTTP 1.1 server until the response is queued. It means that an invalid HTTP 1.1 request will fail even if the response is sent with HTTP 1.0 and the request would be valid if interpreted with this version. For example, this request will fail in strict mode: GET /dummy HTTP/1.1 as the Host header is missing and is mandatory in HTTP 1.1, but it should succeed when interpreted with HTTP 1.0. I don't think this is a big issue in practice. Besides, being able to change the HTTP version on a response basis is really convenient when using MHD in a test framework where we need to validate a client against HTTP 1.1 AND HTTP 1.0.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog4
1 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index eb273daf..b8d2c8f5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
1Tue Oct 16 20:43:41 CEST 2018
2 Add MHD_RF_HTTP_VERSION_1_0_RESPONSE option to make MHD
3 act more like an HTTP/1.0 server. -GH
4
1Fri Oct 5 18:44:45 CEST 2018 5Fri Oct 5 18:44:45 CEST 2018
2 MHD_add_response_header() now prevents applications from 6 MHD_add_response_header() now prevents applications from
3 setting a "Transfer-Encoding" header to values other than 7 setting a "Transfer-Encoding" header to values other than