From c2d7e81548e7a0958c300f7afafb2747b0730135 Mon Sep 17 00:00:00 2001 From: jules Date: Thu, 1 Mar 2012 12:13:21 +0000 Subject: [PATCH] Linux http header fix. --- modules/juce_core/native/juce_linux_Network.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/juce_core/native/juce_linux_Network.cpp b/modules/juce_core/native/juce_linux_Network.cpp index f8d6c8cd49..2e9aa416d1 100644 --- a/modules/juce_core/native/juce_linux_Network.cpp +++ b/modules/juce_core/native/juce_linux_Network.cpp @@ -363,7 +363,9 @@ private: "." JUCE_STRINGIFY(JUCE_MINOR_VERSION) "." JUCE_STRINGIFY(JUCE_BUILDNUMBER)); 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 << "\r\n" << postData;