"source": {
"type": "git",
"url": "https://github.com/WoltLab/guzzle",
- "reference": "2d4592a12d3d6757f9969122730e69d6b7c82af0"
+ "reference": "40e0ba7d933ec47237adb4f35ba363c3d8ffe453"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/WoltLab/guzzle/zipball/2d4592a12d3d6757f9969122730e69d6b7c82af0",
- "reference": "2d4592a12d3d6757f9969122730e69d6b7c82af0",
+ "url": "https://api.github.com/repos/WoltLab/guzzle/zipball/40e0ba7d933ec47237adb4f35ba363c3d8ffe453",
+ "reference": "40e0ba7d933ec47237adb4f35ba363c3d8ffe453",
"shasum": ""
},
"require": {
"rest",
"web service"
],
- "time": "2020-09-30T10:06:20+00:00"
+ "time": "2020-10-09T13:06:06+00:00"
},
{
"name": "guzzlehttp/promises",
"source": {
"type": "git",
"url": "https://github.com/WoltLab/guzzle",
- "reference": "2d4592a12d3d6757f9969122730e69d6b7c82af0"
+ "reference": "40e0ba7d933ec47237adb4f35ba363c3d8ffe453"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/WoltLab/guzzle/zipball/2d4592a12d3d6757f9969122730e69d6b7c82af0",
- "reference": "2d4592a12d3d6757f9969122730e69d6b7c82af0",
+ "url": "https://api.github.com/repos/WoltLab/guzzle/zipball/40e0ba7d933ec47237adb4f35ba363c3d8ffe453",
+ "reference": "40e0ba7d933ec47237adb4f35ba363c3d8ffe453",
"shasum": ""
},
"require": {
"suggest": {
"psr/log": "Required for using the Log middleware"
},
- "time": "2020-09-30T10:06:20+00:00",
+ "time": "2020-10-09T13:06:06+00:00",
"type": "library",
"extra": {
"branch-alias": {
}
}
- // Do not connect a sink for HEAD requests.
- if ($easy->request->getMethod() !== 'HEAD') {
- if (!isset($options['sink'])) {
- // Use a default temp stream if no sink was set.
- $options['sink'] = \fopen('php://temp', 'w+');
- }
- $sink = $options['sink'];
- if (!is_string($sink)) {
- $sink = \GuzzleHttp\Psr7\stream_for($sink);
- } elseif (!is_dir(dirname($sink))) {
- // Ensure that the directory exists before failing in curl.
- throw new \RuntimeException(sprintf(
- 'Directory %s does not exist for sink value of %s',
- dirname($sink),
- $sink
- ));
- } else {
- $sink = new LazyOpenStream($sink, 'w+');
- }
- $easy->sink = $sink;
- $conf[CURLOPT_WRITEFUNCTION] = function ($ch, $write) use ($sink) {
- return $sink->write($write);
- };
+ if (!isset($options['sink'])) {
+ // Use a default temp stream if no sink was set.
+ $options['sink'] = \fopen('php://temp', 'w+');
+ }
+ $sink = $options['sink'];
+ if (!is_string($sink)) {
+ $sink = \GuzzleHttp\Psr7\stream_for($sink);
+ } elseif (!is_dir(dirname($sink))) {
+ // Ensure that the directory exists before failing in curl.
+ throw new \RuntimeException(sprintf(
+ 'Directory %s does not exist for sink value of %s',
+ dirname($sink),
+ $sink
+ ));
+ } else {
+ $sink = new LazyOpenStream($sink, 'w+');
}
+ $easy->sink = $sink;
+ $conf[CURLOPT_WRITEFUNCTION] = function ($ch, $write) use ($sink) {
+ return $sink->write($write);
+ };
$timeoutRequiresNoSignal = false;
if (isset($options['timeout'])) {