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

make the StatusError language tag optional #53

Merged
merged 2 commits into from
Oct 31, 2015
Merged

make the StatusError language tag optional #53

merged 2 commits into from
Oct 31, 2015

Conversation

boomlinde
Copy link
Contributor

Be more lenient with servers that don't implement the language tag part of status messages. Addresses issue #52

@davecheney
Copy link
Member

Thank you. I have no issue with this change, but this will need a test so it does not regress in the future.

Serialize and truncate a status message to exclude the language
tag, reporting a panic in doing so as a failure.
@boomlinde
Copy link
Contributor Author

Thanks. I added a test to client_tests.go that would fail gracefully before the change in e6dc896 and passes after it.

@davecheney
Copy link
Member

Perfect, thanks.

davecheney added a commit that referenced this pull request Oct 31, 2015
make the StatusError language tag optional
@davecheney davecheney merged commit e09e01e into pkg:master Oct 31, 2015
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