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

Send client version header #19

Merged
merged 1 commit into from
Nov 22, 2017
Merged

Conversation

OndraM
Copy link
Member

@OndraM OndraM commented Nov 22, 2017

No description provided.

jirinovak
jirinovak previously approved these changes Nov 22, 2017
davidkmenta
davidkmenta previously approved these changes Nov 22, 2017
@@ -53,5 +53,9 @@ public function shouldSendAndDecodeRequest(): void
$recordedRequests[0]->getBody()->__toString()
);
$this->assertSame(['application/json'], $recordedRequests[0]->getHeader('Content-Type'));
$this->assertStringStartsWith(
'php-client/',
Copy link

Choose a reason for hiding this comment

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

Why not assert the entire header value?

Copy link
Member Author

Choose a reason for hiding this comment

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

Version will change every release. But ok, I can use the constant there, why not 🤷‍.

@OndraM OndraM dismissed stale reviews from davidkmenta and jirinovak via e39004a November 22, 2017 13:27
ghost
ghost previously approved these changes Nov 22, 2017
@OndraM OndraM merged commit 76e24ba into lmc-eu:master Nov 22, 2017
@OndraM OndraM added this to the 0.9 milestone Nov 23, 2017
@OndraM OndraM deleted the feature/version-header branch January 15, 2024 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants