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;