Skip to content

Fix long user agent issue #5

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

Merged
merged 1 commit into from
Mar 13, 2015
Merged

Conversation

dennisvdvliet
Copy link
Contributor

When using this client in a long running PHP script (a background worker for example), the following line of code results in extremely long user agents:

https://github.com/messagebird/php-rest-api/blob/master/src/MessageBird/Common/HttpClient.php#L47

Example

MessageBird/ApiClient/1.1.2 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310 PHP/50310

As an added bonus this pull request makes sure that the PHP version is also included for PHP version below 5.2.7 (see http://php.net/phpversion#example-536)

@dennisvdvliet
Copy link
Contributor Author

ping-pong

bviolier added a commit that referenced this pull request Mar 13, 2015
@bviolier bviolier merged commit f198650 into messagebird:master Mar 13, 2015
gedimin45 pushed a commit that referenced this pull request Aug 15, 2016
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.

2 participants