1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-24 10:03:27 +01:00

3157 Commits

Author SHA1 Message Date
Chris Nanney
7e405efc1a Don't include summary in exception message when body is empty
Exception messages end with ":\n\n" when there is no response body.
2016-10-18 16:32:51 -05:00
Pavel Janda
f8f10589ee Added cofiguration option to force client to use either ipv4 or ipv6 protocol (curl) 2016-10-14 08:37:47 +02:00
Morten Hauberg
9061956e6a Minor refactoring (#1612) 2016-10-13 07:38:46 +02:00
Márk Sági-Kazár
ebf29dee59
6.2.2 release 6.2.2 2016-10-08 18:01:37 +03:00
Tobias Nyholm
a0d75173c8 Merge pull request #1597 from brunoplima/brunoplima-typo
Fixing typo
2016-09-22 16:23:55 +02:00
Bruno Lima
a6e14fcc7f Fixing typo
There was a missing ')' on the middleware migration session.
2016-09-22 11:14:47 -03:00
Tobias Nyholm
f314080006 Merge pull request #1593 from radarhere/master
Fixed typos
2016-09-19 11:50:28 +02:00
Andrew Murray
69cf93f24b Fixed typos 2016-09-19 18:55:23 +10:00
Maksim N
113071af3b Obfuscates URI if there is an username and a password present (#1570)
* Obfuscates URI if there is an username and a password present

Lets assume that you include username and password into the URI. Currently, if the exception accrued the error message looks like so:

```
Client error: `POST http://username:secrect@hostname.com/somePath` resulted in a `400 Bad Request` response: ......,  (truncated...)
```

It lead to security issue because password is shown like it is.

This commit will hide the password (replace it with `***`).

* Make `obfuscateUri` private

* Improve tests
2016-09-12 17:07:23 +02:00
Márk Sági-Kazár
b6e8a8e01f Merge pull request #1577 from michaelbutler/master
handle drain case where content-length is the literal string zero

Closes #1539
2016-09-08 10:57:31 +02:00
Márk Sági-Kazár
870527d30b Merge pull request #1579 from sagikazarmark/remove_composer_upgrade_duplicate
Remove duplicate composer self-update command
2016-09-07 11:38:23 +02:00
Márk Sági-Kazár
def7d323bd Merge pull request #1578 from sagikazarmark/document_progress_callback
Documents the progress callback request option
2016-09-06 23:17:25 +02:00
Márk Sági-Kazár
4e00d7c5b6
Remove duplicate composer self-update command 2016-09-06 11:19:42 +02:00
Márk Sági-Kazár
5fcc9920bd
Documents the progress callback request option
Closes #1576
2016-09-06 10:31:48 +02:00
Michael Butler
984f1d85af handle drain case where content-length is the literal string zero 2016-09-05 17:21:49 -04:00
Michael Dowling
ba573b420d Merge pull request #1562 from scheb/delay-with-response
Retry-After Header in Guzzle 6
2016-08-31 09:51:05 -07:00
Michael Dowling
100271120b Merge pull request #1565 from pkruithof/no-scheme-without-host
Only add scheme when host is present
2016-08-30 18:08:05 -07:00
Christian Scheb
16ebf2ef37 Pass nullable Response to delay callable 2016-08-30 20:53:41 +02:00
pkruithof
ac09112309 Only add scheme when host is present 2016-08-29 16:10:26 +02:00
Michael Dowling
3b45e7675e Merge pull request #1538 from Tobion/doc-magic-methods
document uri type for magic methods
2016-08-03 17:05:49 -07:00
Michael Dowling
d115eaa7bf Merge pull request #1543 from GrahamCampbell/patch-1
Test on PHP 7.1
2016-08-03 10:16:45 -07:00
Graham Campbell
fa0a6cfa9c Test on PHP 7.1 2016-08-02 16:36:52 +01:00
Tobias Schultze
e684969433 document type for magic methods
this is according to phpdoc and works with phpstorm
2016-07-23 20:01:12 +02:00
Michael Dowling
158c171272 Merge pull request #1529 from mstrom/master
Fixing issue #1528 - default value of allow_redirects.referer
2016-07-21 13:48:12 -07:00
Mikhail Strachuk
9c2445194f Changin documentation for default value of allow_redirects.referer 2016-07-20 21:29:53 -07:00
Mikhail Strachuk
f020b9b897 Fixing issue #1528 - default value of allow_redirects.referer 2016-07-15 17:05:50 -07:00
Michael Dowling
3f808fba62 6.2.1 release 6.2.1 2016-07-15 10:22:37 -07:00
Michael Dowling
9d521b2314 Addressing HTTP_PROXY security vulnerability, CVE-2016-5385 2016-07-15 10:14:23 -07:00
Michael Dowling
10a49d5e1b Merge pull request #1510 from guzzle/stream-read-content-length
Only read up to Content-Length in stream wrapper
2016-07-01 16:54:08 -07:00
Michael Dowling
5b3279a810 Do not drain on HEAD requests 2016-07-01 12:25:54 -07:00
Michael Dowling
90a08e8aa7 Merge pull request #1511 from cheprasov/equal-to-identical
Equal to identical
2016-07-01 10:32:48 -07:00
Michael Dowling
80af2425db Merge pull request #1513 from javiereguiluz/patch-1
Fixed a PHP namespace
2016-07-01 10:31:34 -07:00
Michael Dowling
71960d83b8 Merge pull request #1514 from Tobion/ignore-fragment
ignore URI fragment when dereferencing
2016-07-01 10:30:57 -07:00
Tobias Schultze
49086392c1 ignore URI fragment when dereferencing 2016-07-01 16:12:51 +02:00
Javier Eguiluz
c554a228be Fixed a PHP namespace 2016-07-01 11:23:17 +02:00
Michael Dowling
a6ed049497 Only read up to Content-Length in stream wrapper
This commit updates the stream wrapper to only read up to the number of
bytes returned in the Content-Length header when draining a stream
synchronously.
2016-06-30 13:49:28 -07:00
Alexander Cheprasov
fada921171 fix equals to identical 2016-06-30 19:05:58 +01:00
Michael Dowling
502b40014c Merge pull request #1509 from Tobion/fix-uri-without-scheme-fallback
Fix uri without scheme fallback
2016-06-30 10:58:34 -07:00
Alexander Cheprasov
31f22b1750 fix equals to identical 2016-06-30 18:30:21 +01:00
Alexander Cheprasov
8822d7bea0 fix equals to identical 2016-06-30 18:25:55 +01:00
Tobias Schultze
7cdd16f2c5 fix and add test for URI without scheme 2016-06-30 12:22:40 +02:00
Tobias Schultze
f0a4ecca8c require psr7 1.3.1
previous versions had bug when combining the URI components
2016-06-29 18:47:07 +02:00
Tobias Schultze
443a7a621c When URI has no scheme use http by default
curl usually also uses http when no scheme is given. see https://curl.haxx.se/libcurl/c/CURLOPT_URL.html
but curl requires network-path URIs without a scheme to not starting with 2 starting slashes which is actually wrong (probably done for user-friendliness). so the fixes in psr7 1.3.1 actually broke curl handler for URIs without scheme. we solve this problem by applying the http default scheme to the URI beforehand. this also ensures that the stream handler works the same way. fopen() requires a scheme and has no fallback logic. so there was an inconsistency.
2016-06-29 18:39:38 +02:00
Michael Dowling
79c6fbef13 Merge pull request #1495 from seferov/patch-1
Fix broken travis badge
2016-06-20 00:37:14 -07:00
Farhad Safarov
3528e406e1 Fix broken travis badge 2016-06-20 09:52:22 +03:00
Michael Dowling
61b1d4986f Merge pull request #1493 from gsdevme/patch-1
fix: corrects docblock for json_encode
2016-06-17 10:47:21 -07:00
Gavin Staniforth
af35c5b7b6 fix: corrects docblock for json_encode 2016-06-16 19:28:21 +01:00
Michael Dowling
eeff956f2c Merge pull request #1480 from Tobion/uri-default
Remove URI default value
2016-06-12 16:58:31 -07:00
Michael Dowling
fc3dfa4dd8 Merge pull request #1488 from andreasfernandez/master
Ignore zeroed timeout with StreamHandler to use PHP default instead
2016-06-12 16:55:22 -07:00
Michael Dowling
a65c2adc7b Merge pull request #1489 from t-geindre/patch-1
Fix typo in request-options.rst
2016-06-12 16:54:34 -07:00