Skip to content

Commit 1dff2b5

Browse files
committed
HTTP methods must be uppercase
1 parent ec33375 commit 1dff2b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FeedIo/Adapter/Client.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ public function setUserAgent(string $userAgent): Client
3737
public function getResponse(string $url, DateTime $modifiedSince = null): ResponseInterface
3838
{
3939
if ($modifiedSince) {
40-
$headResponse = $this->request('head', $url, $modifiedSince);
40+
$headResponse = $this->request('HEAD', $url, $modifiedSince);
4141
if (304 === $headResponse->getStatusCode()) {
4242
return $headResponse;
4343
}
4444
}
4545

46-
return $this->request('get', $url, $modifiedSince);
46+
return $this->request('GET', $url, $modifiedSince);
4747
}
4848

4949
/**

0 commit comments

Comments
 (0)