mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-29 02:40:05 +00:00
Avoided the URL class adding parameters when generating post data for uploading files.
This commit is contained in:
parent
3cc8406b3d
commit
aed910aadd
1 changed files with 2 additions and 3 deletions
|
|
@ -241,8 +241,6 @@ void URL::createHeadersAndPostData (String& headers, MemoryBlock& headersAndPost
|
|||
{
|
||||
MemoryOutputStream data (headersAndPostData, false);
|
||||
|
||||
data << URLHelpers::getMangledParameters (*this);
|
||||
|
||||
if (filesToUpload.size() > 0)
|
||||
{
|
||||
// (this doesn't currently support mixing custom post-data with uploads..)
|
||||
|
|
@ -285,7 +283,8 @@ void URL::createHeadersAndPostData (String& headers, MemoryBlock& headersAndPost
|
|||
}
|
||||
else
|
||||
{
|
||||
data << postData;
|
||||
data << URLHelpers::getMangledParameters (*this)
|
||||
<< postData;
|
||||
|
||||
// if the user-supplied headers didn't contain a content-type, add one now..
|
||||
if (! headers.containsIgnoreCase ("Content-Type"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue