gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] 04/05: response.c: used stricter check for "Upgrade:" he


From: gnunet
Subject: [libmicrohttpd] 04/05: response.c: used stricter check for "Upgrade:" header
Date: Wed, 11 Aug 2021 21:37:06 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 96a0da03fecf39a530928c0223d16ba517a80473
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Wed Aug 11 22:25:11 2021 +0300

    response.c: used stricter check for "Upgrade:" header
---
 src/microhttpd/response.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c
index 8e16de3d..c869afcf 100644
--- a/src/microhttpd/response.c
+++ b/src/microhttpd/response.c
@@ -1616,13 +1616,15 @@ MHD_response_execute_upgrade_ (struct MHD_Response 
*response,
     return MHD_NO;
 
   if (NULL ==
-      MHD_get_response_header (response,
-                               MHD_HTTP_HEADER_UPGRADE))
+      MHD_get_response_element_n_ (response, MHD_HEADER_KIND,
+                                   MHD_HTTP_HEADER_UPGRADE,
+                                   MHD_STATICSTR_LEN_ ( \
+                                     MHD_HTTP_HEADER_UPGRADE)))
   {
 #ifdef HAVE_MESSAGES
     MHD_DLOG (daemon,
-              _ (
-                "Invalid response for upgrade: application failed to set the 
'Upgrade' header!\n"));
+              _ ("Invalid response for upgrade: " \
+                 "application failed to set the 'Upgrade' header!\n"));
 #endif
     return MHD_NO;
   }

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]