commit 4809ee654a51fd76bb41830337d5859d5bb9b5a5
parent 6894504f51ecd271f7471c69935329b1402f49c2
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Tue, 9 May 2017 12:31:05 +0300
Revert: continue match footers in MHD_get_response_header().
This is a partial revert of 6894504f51ecd271f7471c69935329b1402f49c2
Diffstat:
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,7 @@
+Tue May 9 12:28:00 MSK 2017
+ Revert: continue match footers in MHD_get_response_header() for backward
+ compatibility. -EG
+
Mon May 8 19:30:00 MSK 2017
Fixed: use case-insensitive matching for header name in
MHD_get_response_header(), match only headers (not footers). -EG
diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c
@@ -241,8 +241,7 @@ MHD_get_response_header (struct MHD_Response *response,
return NULL;
for (pos = response->first_header; NULL != pos; pos = pos->next)
{
- if ( (pos->kind == MHD_HEADER_KIND) &&
- MHD_str_equal_caseless_ (pos->header, key) )
+ if ( MHD_str_equal_caseless_ (pos->header, key) )
return pos->value;
}
return NULL;