Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Add User-Agent header to HTTPRequest #113

Merged
merged 2 commits into from Aug 2, 2016

Conversation

kunall17
Copy link
Collaborator

@kunall17 kunall17 commented Aug 2, 2016

Implement #111
Adds header like ZulipAndroid-0.8.9
And upgrade okHttp library dependency

@smarx
Copy link

smarx commented Aug 2, 2016

Automated message from Dropbox CLA bot

@kunall17, it looks like you've already signed the Dropbox CLA. Thanks!

@@ -158,12 +158,12 @@ public String getApiKey() {
public String getUserAgent() {
try {
return ZulipApp.USER_AGENT
+ "/"
+ "-"
Copy link
Contributor

Choose a reason for hiding this comment

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

This should stay as a /. User agents are usually in the form software/version

@niftynei
Copy link
Contributor

niftynei commented Aug 2, 2016

See comments about / vs -.

Otherwise lgtm

@niftynei niftynei merged commit eebc7d8 into zulip:master Aug 2, 2016
@niftynei
Copy link
Contributor

niftynei commented Aug 2, 2016

Thanks @kunall17 !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants