Skip to content

Commit 1bbc41a

Browse files
committed
hotfix
1 parent fc11ea1 commit 1bbc41a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spec/HttpClientSpec.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function it_should_send_requests()
2727

2828
$this->beConstructedWith($psr17Factory, $psr17Factory);
2929

30-
$request = $psr17Factory->createRequest('GET', $url);
30+
$request = $psr17Factory->createRequest('GET', $url.'/');
3131
$response = $this->sendRequest($request);
3232
$response->getStatusCode()->shouldReturn(200);
3333

@@ -37,7 +37,7 @@ public function it_should_send_requests()
3737
$request = $psr17Factory->createRequest('GET', $url.'/get/404');
3838
$this->shouldThrow(Exceptions\ClientError::class)->duringSendRequest($request);
3939

40-
$request = $psr17Factory->createRequest('GET', 'http://localhost:3001');
40+
$request = $psr17Factory->createRequest('GET', 'http://localhost:3001/');
4141
$this->shouldThrow(Exceptions\TransportError::class)->duringSendRequest($request);
4242

4343
$request = $psr17Factory->createRequest('HEAD', $url);

src/HttpClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ protected function buildOptions(RequestInterface $request): array
112112
};
113113
}
114114

115-
return array_merge($options, $this->options);
115+
return $this->options + $options;
116116
}
117117

118118
protected function parseHeaders(ResponseInterface $response, StreamInterface $headers): ResponseInterface

0 commit comments

Comments
 (0)