[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libmicrohttpd] branch master updated: Revert: continue mat
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libmicrohttpd] branch master updated: Revert: continue match footers in MHD_get_response_header(). This is a partial revert of 6894504f51ecd271f7471c69935329b1402f49c2 |
Date: |
Tue, 09 May 2017 11:31:38 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
The following commit(s) were added to refs/heads/master by this push:
new 4809ee65 Revert: continue match footers in MHD_get_response_header().
This is a partial revert of 6894504f51ecd271f7471c69935329b1402f49c2
4809ee65 is described below
commit 4809ee654a51fd76bb41830337d5859d5bb9b5a5
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Tue May 9 12:31:05 2017 +0300
Revert: continue match footers in MHD_get_response_header().
This is a partial revert of 6894504f51ecd271f7471c69935329b1402f49c2
---
ChangeLog | 4 ++++
src/microhttpd/response.c | 3 +--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index a8a69d8d..9a1f3dae 100644
--- 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
index 50ec521e..4326da07 100644
--- 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;
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [libmicrohttpd] branch master updated: Revert: continue match footers in MHD_get_response_header(). This is a partial revert of 6894504f51ecd271f7471c69935329b1402f49c2,
gnunet <=