Closed (fixed)
Project:
Http Client
Version:
7.x-2.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Nov 2011 at 02:49 UTC
Updated:
22 Aug 2012 at 14:44 UTC
The current code always assumes that the request data is a string (in order to determine the content length). However if you use cURL and want to do a multipart post then the request data must be an array of post fields. Aboviously this will result in a warning being generated due to the string length function being called on the request data.
I attached a patch which checks if the $request->data is a string before determining the content length.
| Comment | File | Size | Author |
|---|---|---|---|
| allow-multipart-post.patch | 549 bytes | freblasty |
Comments
Comment #1
freblasty commentedComment #2
freblasty commentedCould someone look at this issue?
Comment #3
Hugo Wetterberg commentedFixed in 2.4