Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating client to be compliant with RFC 2616: case-insensitive headers #554

Merged
merged 1 commit into from
Oct 1, 2020

Conversation

douglasmiller
Copy link
Contributor

According to section 4.2 of RFC 2616:

Each header field consists of a name followed by a colon (":") and the field value. Field names are case-insensitive.

This update will make the client treat headers in a case-insensitive manner.

@@ -82,7 +82,8 @@ public function testFromStub() {
$relative_url = '/mocks';
$this->client->addResponse('GET', $relative_url, 'pager/index-1-200.xml');

$pager = (new Recurly_Stub('mocks', $relative_url, $this->client))->get();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was causing an error in PHP 5.3:

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /app/Tests/Recurly/Pager_Test.php on line 85

Copy link
Contributor

@joannasese joannasese left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@joannasese joannasese merged commit 830b86c into release_2_8 Oct 1, 2020
@joannasese joannasese deleted the 2-8-headers branch October 1, 2020 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug V2 V2 Client
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants