libmicrohttpd
[Top][All Lists]
Advanced

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

[libmicrohttpd] Fix: Remove double adding of MHD_HTTP_HEADER_CONNECTION


From: Irion, Alexander
Subject: [libmicrohttpd] Fix: Remove double adding of MHD_HTTP_HEADER_CONNECTION response header
Date: Wed, 15 Jun 2022 10:45:00 +0000

Please, see the attached small fix:

 

Remove double adding of MHD_HTTP_HEADER_CONNECTION response header

 

MHD_create_response_for_upgrade() already adds the MHD_HTTP_HEADER_CONNECTION response header, so

the additional MHD_add_response_header is wrong.

 

In our application it caused, that on a Apple iPad, the websocket was immediately closed by the

browser(Safari, Chrome, Opera) after the protocol upgrade. Browsers on Linux, Android did not had this issue.

 

Signed-off-by: Alexander Irion alexander_irion@mentor.com

-----------------
Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955

Attachment: 0001-Remove-double-adding-of-MHD_HTTP_HEADER_CONNECTION-r.patch
Description: 0001-Remove-double-adding-of-MHD_HTTP_HEADER_CONNECTION-r.patch


reply via email to

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