Skip to content

Commit

Permalink
Merge pull request #76 from exonet/tsi/gh75
Browse files Browse the repository at this point in the history
Replace deprecated Guzzle function
  • Loading branch information
robbinjanssen authored Jul 6, 2021
2 parents b6b29f6 + be13492 commit fd0d644
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ All notable changes to `powerdns-php` will be documented in this file.
Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) principles.

## Unreleased
[Compare v3.3.0 - Unreleased](https://github.com/exonet/powerdns-php/compare/v3.3.0...develop)
[Compare v3.3.1 - Unreleased](https://github.com/exonet/powerdns-php/compare/v3.3.1...develop)

## [v3.3.1](https://github.com/exonet/powerdns-php/releases/tag/v3.3.1) - 2021-07-06
[Compare v3.3.0 - v3.3.1](https://github.com/exonet/powerdns-php/compare/v3.3.0...v3.3.1)
### Fixed
- Replace deprecated Guzzle function (#75)

## [v3.3.0](https://github.com/exonet/powerdns-php/releases/tag/v3.3.0) - 2021-06-07
[Compare v3.2.0 - v3.3.0](https://github.com/exonet/powerdns-php/compare/v3.2.0...v3.3.0)
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ services:
MYSQL_ROOT_PASSWORD: verySecretPassword

powerdns44:
image: psitrax/powerdns:latest
image: psitrax/powerdns:v4.4
container_name: pdns44
environment:
MYSQL_USER: root
Expand Down
3 changes: 2 additions & 1 deletion src/Connector.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use GuzzleHttp\HandlerStack;
use GuzzleHttp\Psr7\Request;
use GuzzleHttp\Psr7\Response as PsrResponse;
use GuzzleHttp\Psr7\Utils;

class Connector implements ConnectorInterface
{
Expand Down Expand Up @@ -120,7 +121,7 @@ private function makeCall(string $method, string $urlPath, ?string $payload = nu

$this->powerdns->log()->debug('Sending ['.$method.'] request', compact('url', 'headers', 'payload'));

$stream = $payload !== null ? \GuzzleHttp\Psr7\stream_for($payload) : null;
$stream = $payload !== null ? Utils::streamFor($payload) : null;
$request = new Request($method, $url, $headers, $stream);

$response = $this->httpClient->send($request, ['http_errors' => false]);
Expand Down

0 comments on commit fd0d644

Please sign in to comment.