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

Implementation of user agent. #14

Merged
merged 5 commits into from
Feb 8, 2013
Merged

Implementation of user agent. #14

merged 5 commits into from
Feb 8, 2013

Conversation

gcheng
Copy link
Owner

@gcheng gcheng commented Feb 7, 2013

No description provided.

properties.load(inputStream);
}
catch (IOException e) {
throw new RuntimeException(e);
Copy link

Choose a reason for hiding this comment

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

Instead of throwing, it would be a nicer experience to just fall back to a default string. This code gets hit for every request. If for some reason we cannot read the properties, then no requests would work. Just returning a default string, like "unknown" would make the failure to read not have big impact.

Copy link
Owner Author

Choose a reason for hiding this comment

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

this sounds like a good idea, instead of returning an unknown, it might be more informative just to return an empty String as Version Number.

gcheng pushed a commit that referenced this pull request Feb 8, 2013
Implementation of user agent.
@gcheng gcheng merged commit 8c7ffac into dev Feb 8, 2013
@gcheng gcheng deleted the useragent branch February 8, 2013 00:47
gcheng pushed a commit that referenced this pull request Mar 9, 2013
Clean up service bus assets created as part of test at the end.
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