Aleksey Kozakov
2cffbeb826
Changed double quotes to single quotes
2016-01-25 16:23:19 +02:00
Aleksey Kozakov
2138667fe7
Changed to single quotes
2016-01-25 16:18:25 +02:00
Aleksey Kozakov
afaa8917cb
The "Host" header is being preserved, if it was set manually.
2016-01-22 12:20:07 +02:00
Jonathan Eskew
789bd2309e
Merge pull request #1367 from ianchadwick/patch-1
...
Fix #1366 error when posting with form_params
2016-01-20 14:04:50 -08:00
Ian Chadwick
479c3baf4e
Fix #1366 error when posting with form_params
...
HHVM return null when trying to build the query due to null being passed rather than an empty string.
2016-01-19 11:57:30 +00:00
Michael Dowling
74fc390917
Merge pull request #1350 from xopoc14/master
...
Fix for PHP Fatal error in MockHandler.php
2015-12-29 13:28:50 -08:00
Michael Dowling
19b3d24673
Fixing readme
...
Closes #1343
2015-12-29 13:27:26 -08:00
Andrei Khalipau
bd3b88854c
Fix for PHP Fatal error in MockHandler.php
2015-12-28 13:02:28 -05:00
Michael Dowling
2e5c595512
Merge pull request #1324 from Briareos/patch-1
...
Fix sleep calculation when waiting for delayed requests
2015-11-30 18:41:23 -08:00
Milos Colakovic
3de0df38c7
Fix sleep calculation when waiting for delayed requests
...
`$nextTime` is always set in the future, and `usleep()` takes microseconds as an argument. Currently this function always returns 0 if there are no ongoing requests, clogging the CPU in the `while` loop.
2015-12-01 02:55:03 +01:00
Michael Dowling
14c8c76919
Fixing broken travis deployments
2015-11-22 17:17:16 -08:00
Michael Dowling
c6851d6e48
6.1.1 release
6.1.1
2015-11-22 16:47:50 -08:00
Michael Dowling
d98d291043
Merge pull request #1315 from bocharsky-bw/patch-1
...
Fix status code as integer in example
2015-11-22 16:39:13 -08:00
Victor Bocharsky
6ce41b3cec
Fix status code in example
...
The `getStatusCode()` method returns an `integer` status code, not a `string`.
2015-11-19 12:49:07 +02:00
Michael Dowling
a21d3ccb7e
Merge pull request #1292 from ivank/sink-for-mock-handler
...
Implement "sink" for MockHandler
2015-11-15 01:29:07 -08:00
Michael Dowling
3a0020170b
Merge pull request #1203 from mortenhauberg/master
...
Yield key
2015-11-15 01:27:09 -08:00
Michael Dowling
5c12b74e94
Merge pull request #1286 from daleattree/master
...
https://github.com/guzzle/guzzle/issues/1256
2015-11-15 01:15:37 -08:00
Dale Attree
1d3cfb248a
Set SSL verify peer name to true when verify peer is true.
...
Added test for to assert verify peer name
2015-11-05 21:39:55 +02:00
Ivan Kerin
ae2536bf72
Implement "sink" for MockHandler
2015-10-30 17:56:48 +02:00
Dale Attree
3937279ba1
Update StreamHandlerTest.php
...
Incorrect assertion added
2015-10-27 14:45:27 +02:00
Michael Dowling
4f11935f70
Merge pull request #1288 from elliotfehr/patch-2
...
Update `GuzzleHttp\Cookie\CookieJarInterface` namespace
2015-10-26 21:12:26 -07:00
Michael Dowling
15592d010e
Merge remote-tracking branch 'dawehner/weird-php'
2015-10-26 21:07:00 -07:00
Michael Dowling
552e3a19b1
Merge pull request #1285 from tpavlek/exceptions-in-mockhandler
...
Documented throwing an exception in MockHandler
2015-10-26 21:04:45 -07:00
Michael Dowling
0a966bbe9c
Message tweaks and adding truncation notice
2015-10-26 21:03:44 -07:00
Michael Dowling
1654679ba0
Merge remote-tracking branch 'shadowhand/hotfix/improved-middleware-exception' into response-body-exception
2015-10-26 20:47:11 -07:00
Michael Dowling
f186cb3f12
Merge pull request #1278 from mortenhauberg/fix-minor-typos
...
Fix a typo
2015-10-26 20:44:35 -07:00
Elliot Fehr
1d3ca2a30f
Update GuzzleHttp\Cookie\CookieJarInterface
namespace
2015-10-22 23:10:56 -04:00
Daniel Wehner
861c14ccfc
fix bug
2015-10-22 01:06:05 -07:00
Daniel Wehner
bc33217822
simplify the logic
2015-10-22 00:44:24 -07:00
Daniel Wehner
bd3c5ba8ec
take into account disabled functions
2015-10-22 00:37:48 -07:00
Dale Attree
52e099d3ec
https://github.com/guzzle/guzzle/issues/1256
...
Code added to resolve issue 1256
2015-10-21 16:45:15 +02:00
Troy Pavlek
0134b2fc82
Documented throwing an exception in MockHandler
...
While exceptions are briefly mentioned in the preceding documentation, it is not immediately clear that exceptions can be thrown in the MockHandler, since my eyes are immediately drawn to the example code rather than the textual pre-amble.
With this, it is immediately clear to anyone that the stack can consist of both Responses and Exceptions.
2015-10-20 09:45:55 -06:00
Woody Gilk
5a5893c19f
Switch Middleware to use exception factory
...
The `RequestException::create` factory was not being used anywhere.
Using it inside of `Middleware::httpErrors` simplifies the code and
allows for simpler changes in the future.
Also updates the message formatting of the exception factory to
provide a more complete status, including the body of the response.
2015-10-20 08:43:14 -05:00
mortenhauberg
6b9c529cc0
Fix a typo
2015-10-15 09:55:34 +02:00
Jeremy Lindblom
90d7d39a97
Merge pull request #1277 from mortenhauberg/fix-syntax-errors
...
Fix syntax errors in documentation
2015-10-14 23:47:57 -07:00
mortenhauberg
fb449de675
Fix syntax errors
2015-10-15 08:20:49 +02:00
Michael Dowling
6d6c3a68fb
Merge pull request #1271 from guzzle/reusable-handler-stack
...
Makes the HandlerStack more reusable
2015-10-05 14:30:32 -07:00
Jeremy Lindblom
f210294133
Fixes #1263 . Makes the HandlerStack more reusable (without BC) by moving the "cached" logic from __invoke() to resolve().
2015-10-04 22:53:12 -07:00
Michael Dowling
ecf4fc1ef4
Merge pull request #1270 from sulfo/patch-1
...
Fixed formating
2015-09-30 10:14:23 -07:00
Michael Sørensen
471d589f37
Fixed formating
...
Code block was not been displayed due to incorrect indentation.
2015-09-30 18:23:51 +02:00
Michael Dowling
c4c2ae9e2f
Merge pull request #1266 from EdgarPE/master
...
Fixes incorrect synchrounous check in Proxy class.
2015-09-28 09:52:08 -07:00
EdgarPE
911bcbc8b4
Fix tests for RequestOptions::SYNCHRONOUS check in Proxy::wrapSync()
2015-09-28 10:59:51 +02:00
EdgarPE
e664da3e88
Fix RequestOptions::SYNCHRONOUS check in Proxy::wrapSync()
2015-09-26 01:33:23 +02:00
Michael Dowling
768b4c0e3e
Merge pull request #1253 from dawehner/__class
...
Use ::class in tests where it was possible
2015-09-16 10:16:54 -07:00
Michael Dowling
146ea37604
Merge pull request #1258 from Brunty/httpbin-host
...
Fixed typo in quickstart docs for httpbin
2015-09-16 10:16:18 -07:00
Michael Dowling
b2a042063d
Merge pull request #1259 from shadowhand/patch-1
...
Use correct interface names in middleware docs
2015-09-16 10:16:10 -07:00
Woody Gilk
7d91e2e87f
Use correct interface names in middleware docs
2015-09-15 15:22:30 -05:00
Matt Brunt
914c2b5010
Fixed typo in quickstart for httpbin
2015-09-15 10:07:47 +01:00
Daniel Wehner
e464b0198d
Use ::class in tests where it was possible
2015-09-09 11:17:23 +02:00
Michael Dowling
ef728b658f
Merge pull request #1252 from jeskew/fix/travis-is-too-slow
...
Travis is too slow when running on its legacy infrastructure
2015-09-08 13:05:33 -07:00