Skip to content

Commit

Permalink
Changed how HTTP headers are ended on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwalley committed Feb 15, 2024
1 parent a8ae6ed commit 1f6d56b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion modules/juce_core/native/juce_Network_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1f6d56b

Please sign in to comment.