Browse Source

Linux http header fix.

tags/2021-05-28
jules 13 years ago
parent
commit
c2d7e81548
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      modules/juce_core/native/juce_linux_Network.cpp

+ 3
- 1
modules/juce_core/native/juce_linux_Network.cpp View File

@@ -363,7 +363,9 @@ private:
"." JUCE_STRINGIFY(JUCE_MINOR_VERSION) "." JUCE_STRINGIFY(JUCE_MINOR_VERSION)
"." JUCE_STRINGIFY(JUCE_BUILDNUMBER)); "." JUCE_STRINGIFY(JUCE_BUILDNUMBER));
writeValueIfNotPresent (header, userHeaders, "Connection:", "Close"); writeValueIfNotPresent (header, userHeaders, "Connection:", "Close");
writeValueIfNotPresent (header, userHeaders, "Content-Length:", String ((int) postData.getSize()));
if (isPost)
writeValueIfNotPresent (header, userHeaders, "Content-Length:", String ((int) postData.getSize()));
header << "\r\n" << userHeaders header << "\r\n" << userHeaders
<< "\r\n" << postData; << "\r\n" << postData;


Loading…
Cancel
Save