mirror of
https://github.com/guzzle/guzzle.git
synced 2025-02-24 18:13:00 +01:00
Merge pull request #1367 from ianchadwick/patch-1
Fix #1366 error when posting with form_params
This commit is contained in:
commit
789bd2309e
@ -291,7 +291,7 @@ class Client implements ClientInterface
|
|||||||
. 'x-www-form-urlencoded requests, and the multipart '
|
. 'x-www-form-urlencoded requests, and the multipart '
|
||||||
. 'option to send multipart/form-data requests.');
|
. 'option to send multipart/form-data requests.');
|
||||||
}
|
}
|
||||||
$options['body'] = http_build_query($options['form_params'], null, '&');
|
$options['body'] = http_build_query($options['form_params'], '', '&');
|
||||||
unset($options['form_params']);
|
unset($options['form_params']);
|
||||||
$options['_conditional']['Content-Type'] = 'application/x-www-form-urlencoded';
|
$options['_conditional']['Content-Type'] = 'application/x-www-form-urlencoded';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user