From 1f6d56b07326f64ef19a49b6afeb349ad8fe0528 Mon Sep 17 00:00:00 2001 From: Max Walley Date: Thu, 15 Feb 2024 10:17:42 +0000 Subject: [PATCH] Changed how HTTP headers are ended on Linux --- modules/juce_core/native/juce_Network_linux.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/juce_core/native/juce_Network_linux.cpp b/modules/juce_core/native/juce_Network_linux.cpp index 1d66db964fda..8c5c1fd064a8 100644 --- a/modules/juce_core/native/juce_Network_linux.cpp +++ b/modules/juce_core/native/juce_Network_linux.cpp @@ -525,7 +525,14 @@ class WebInputStream::Pimpl if (userHeaders.isNotEmpty()) header << "\r\n" << userHeaders; - header << "\r\n\r\n"; + if(header.toString().endsWith("\r\n")) + { + header << "\r\n"; + } + else + { + header << "\r\n\r\n"; + } if (hasPostData) header << postData;