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_ir...@mentor.com<mailto:alexander_ir...@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