8000 Changed the reason phrase casting from int to string by pinkal-vansia · Pull Request #1187 · guzzle/guzzle · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Changed the reason phrase casting from int to string #1187

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 2 commits into from
Jul 28, 2015

Conversation

pinkal-vansia
Copy link
Contributor

int casting of reason phrase was converting legitimate string response header message to 0. e.g. If api send res header("HTTP/1.1 401 Some message"); , "Some message" was resulted in 0 because of int casting and hence could not be fetched with getReasonPhrase() method. Instead default matching message from $phrases message map from Response class was returned. I looked in docs for reason behind int casting but could not find it.

int casting of reason phrase was converting legitimate string response header message to 0. e.g. If api send res `header("HTTP/1.1 401 Some message");` , "Some message" was resulted in 0 because of int casting and hence could not be fetched with `getReasonPhrase()` method. Instead default matching message from `$phrases` message map from `Response` class was returned.
…casting-patch-1

Changed the reason phrase casting from int to string
mtdowling added a commit that referenced this pull request Jul 28, 2015
Changed the reason phrase casting from int to string
@mtdowling mtdowling merged commit 7434058 into guzzle:master Jul 28, 2015
@mtdowling
Copy link
Member

Thanks!

@pinkal-vansia
Copy link
Contributor Author

Pleasure!

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
0