1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-25 10:33:18 +01:00

1540 Commits

Author SHA1 Message Date
Michael Dowling
edbcaaa5d3 Merge pull request #576 from yitznewton/mock-throw-exception-when-exhausted
Updating MockPlugin to throw an exception if queue is empty
2014-02-25 17:49:03 -08:00
yitznewton
64aee32bb5 Updating MockPlugin to throw an exception if queue is empty 2014-02-24 23:11:22 -05:00
Michael Dowling
8d39ffa70a Merge pull request #572 from checat/set-mock-response-http-client
Allow GuzzleTestCase::setMockResponse to be used with Guzzle\Http\Client
2014-02-20 09:01:46 -08:00
Konstantin Pelepelin
198a68a96e Allow GuzzleTestCase::setMockResponse to be used with Guzzle\Http\Client 2014-02-20 20:15:22 +04:00
Michael Dowling
256ffce458 Merge pull request #566 from aeoris/master
Add newly set ServiceDescription objects to CompositeFactory (#565).
2014-02-17 23:26:30 -08:00
Diego Agulló
ed3a1a731e Add newly set ServiceDescription objects to CompositeFactory (#565). 2014-02-16 03:08:22 +01:00
Michael Dowling
c03449e883 Merge pull request #564 from dlutzy/patch-1
Update CHANGELOG.md
2014-02-13 17:12:10 -08:00
David Lutz
a5d28dec18 Update CHANGELOG.md
Typo on year. It's 2014.
2014-02-14 11:59:54 +11:00
Michael Dowling
b4c0948f1e Merge pull request #561 from GrahamCampbell/travis
Travis Improvements
2014-02-12 09:53:56 -08:00
Graham Campbell
f0954a896a Attempted travis fix 2014-02-11 20:38:51 +00:00
Graham Campbell
50a892a157 Travis improvements 2014-02-11 20:31:22 +00:00
Michael Dowling
01a5dddefa Merge pull request #544 from guzzle/empty_query_string
Changes empty query string value serialization
2014-02-11 10:14:34 -08:00
Michael Dowling
63c8b10b98 Merge pull request #548 from scalopus/RevalidationWithoutLastModified
If-Modified-Since should set only when server have return Last Modified ...
2014-02-08 13:41:59 -08:00
Michael Dowling
82c2bf8c30 Merge pull request #555 from dsjellz/master
SchemaValidator not returning correct invalid additionalProperties
2014-02-08 13:27:06 -08:00
David Jellesma
5eb8e3f12a SchemaValidator not returning correct invalid additionalProperties 2014-02-08 03:56:53 -05:00
Michael Dowling
246cd09118 Merge pull request #550 from kkopachev/rfc6265-cookie-path
RFC6265 compliant cookie default path and path mathing
2014-02-07 11:57:56 -08:00
Konstantin Kopachev
9617693d63 Implement cookie path matching algo described in RFC6265 s5.1.4 2014-02-07 10:36:58 -08:00
Michael Dowling
90062ffc5c Merge pull request #553 from pborreli/typos
Fixed typos
2014-02-06 20:11:40 -08:00
Pascal Borreli
6b21f3c25b Fixed typos 2014-02-06 20:23:57 +00:00
Michael Dowling
bfeae41a4a Merge pull request #552 from taavit/patch-1
Update guzzle-service-descriptions.rst
2014-02-06 09:16:22 -08:00
Dawid Królak
2e5381e412 Update guzzle-service-descriptions.rst
Changed responseClass example to use correct variable.
2014-02-06 13:29:15 +01:00
Michael Dowling
d25d49f2ed Merge pull request #551 from kkopachev/unittests-fix
Little unit test fixes
2014-02-05 12:56:26 -08:00
Michael Dowling
9c8ea7a26c Merge pull request #549 from elazar/patch-1
Fixed incorrect class name in cURL errors section
2014-02-05 12:53:23 -08:00
Matthew Turland
30a66f110d Fixed incorrect class name in cURL errors section 2014-02-05 12:54:31 -06:00
Konstantin Kopachev
2bc6f68f8d Add expected error string for ubuntu systems 2014-02-05 10:50:30 -08:00
Konstantin Kopachev
737166ec8a Skip invalid json decode test if non-strict decoder presented 2014-02-05 10:43:37 -08:00
Konstantin Kopachev
a0de0b8ef5 Compute the default cookie path as described in RFC6265 2014-02-05 10:29:46 -08:00
Warun Kietduriyakul
06187775cb If-Modified-Since should set only when server have return Last Modified in a response. 2014-02-05 17:00:42 +07:00
Michael Dowling
476bfb12ac Guarding against the case of a cookie with the same name but with different attributes like domain, path, etc... 2014-02-04 22:00:12 -08:00
Michael Dowling
190bb2bd76 Merge remote-tracking branch 'unixo/master' into remove_empty_cookie 2014-02-04 21:40:10 -08:00
Ferruccio Vitale
805b34a872 Added test for empty-cookies removal 2014-02-04 09:20:28 +01:00
Michael Dowling
6a86b5410a Reversing the if logic in addPath 2014-02-03 23:42:32 -08:00
Michael Dowling
96d6f584cd Merge remote-tracking branch 'jamiehannaford/master' into zero_path 2014-02-03 23:26:49 -08:00
Ferruccio Vitale
f9a2553d8e If a cookie already exists and the server asks to set it again with a null value, the cookie must be deleted. 2014-01-31 14:22:12 +01:00
Jamie Hannaford
5eef784441 Very minor punctuation fix to prove Travis is working 2014-01-31 09:13:38 +01:00
Michael Dowling
dc1d824277 Changes empty query string value serialization
Previously, the only way to se empty query string variables that had
no value (e.g., "foo" rather than "foo=") was to use the magic
"_guzzle_blank_" variable. This variable was then added in 3.8.1 to
query string values when parsing a query string so that when the
query string is again cast to a string it would not include the "="
sign. This works, but introduces pain points when working with these
parsed query strings because the data contained in the query string
object now needs special handling (you must check if the value is
"_guzzle_blank_" to see if it should actually be empty). This change
introduced an asymmetry between how a query string is serialized vs
how it is inspected.

The "_guzzle_blank_" logic was introduced due to #96. I believe the
change introduced as a result was the wrong decision and this commit
hopes to address it.

This change now makes `false`, `null`, and `"_guzzle_blank_"` all
act as query string fields that contain no value (meaning no trailing
equal sign). This change marked the use of `"_guzzle_blank_"` as
deprecated. If you still wish for an emtpy query string value that
includes a trailing "=", then use an empty string (i.e., `""`).

Here's an example of how the proposed change will affect query string
serialization:

Given a `Guzzle\Http\QueryString` object `$q`, adding the values on
left will serialize to the string on the right:

* `$q->set('foo', null)` => `"foo"` (previously `"foo="`)
* `$q->set('foo', false)` => `"foo"` (previously `"foo="`)
* `$q->set('foo', '_guzzle_blank_')` => `"foo"` (unchanged)
* `$q->set('foo', '')` => `"foo="` (unchanged)
2014-01-30 13:37:49 -08:00
Jamie Hannaford
b7905ce9ce Fix docblock @param to string 2014-01-30 10:00:21 +01:00
Jamie Hannaford
3424cc47cb Only allow strings to be passed as path arg, but allow for "0" 2014-01-30 09:56:56 +01:00
Michael Dowling
dce090bdee Adding HHVM to the testing matrix. Addresses #538 2014-01-29 10:20:08 -08:00
Jamie Hannaford
3d3f6985f6 Breaking up goliath line for PSR compat 2014-01-29 16:50:19 +01:00
Jamie Hannaford
17b483600d Allows for 0 integers to be added as URL paths 2014-01-29 16:47:38 +01:00
Michael Dowling
cf95dff4da Fixing phing task 2014-01-28 14:37:17 -08:00
Michael Dowling
4de0618a01 Prepping for 3.8.1 v3.8.1 2014-01-28 14:29:15 -08:00
Michael Dowling
1cad576525 Adding Connection: close when using HTTP/1.1 and PHP streams 2014-01-28 14:14:17 -08:00
David Barratt
71e236b74a Remove forced protocol version. 2014-01-28 09:17:41 -05:00
Michael Dowling
028195b32b Escaping the regex delimiter when matching Cookie domains. Closes #526. 2014-01-23 10:29:07 -08:00
Michael Dowling
28c2c5ee5f Removing executable from RedirectPlugin.php. Closes #530 2014-01-23 10:23:29 -08:00
Michael Dowling
aa5e60b65a Fixing doc error 2014-01-23 10:22:11 -08:00
Michael Dowling
cd97afb9dd Setting empty query string values that contain no "=" to the special blank string so that it is represented correctly as a string. Closes 529. 2014-01-15 15:31:19 -08:00
Michael Dowling
6ef45a4097 Merge pull request #525 from gimler/patch-3
fix typo
2014-01-10 10:51:00 -08:00