Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3686)

Issue 6448055: Adding suppressUserAgentSuffix (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 9 months ago by rmistry
Modified:
11 years, 9 months ago
Reviewers:
yanivi
Base URL:
https://google-http-java-client.googlecode.com/hg/
Visibility:
Public.

Description

Created to fix http://code.google.com/p/google-http-java-client/issues/detail?id=53 : Allow customizing user agent without USER_AGENT_SUFFIX.

Patch Set 1 #

Patch Set 2 : Minor fix #

Total comments: 6

Patch Set 3 : review comments #

Patch Set 4 : review comments #

Total comments: 6

Patch Set 5 : review comments #

Total comments: 2

Patch Set 6 : review comments #

Patch Set 7 : Minor fix #

Patch Set 8 : minor fix #

Patch Set 9 : Minor fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -6 lines) Patch
M google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java View 1 2 3 4 5 6 7 8 3 chunks +39 lines, -6 lines 0 comments Download
M google-http-client/src/test/java/com/google/api/client/http/HttpRequestTest.java View 1 2 3 4 5 1 chunk +44 lines, -0 lines 0 comments Download

Messages

Total messages: 9
rmistry
11 years, 9 months ago (2012-07-26 15:30:32 UTC) #1
yanivi
http://codereview.appspot.com/6448055/diff/2001/google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java File google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java (right): http://codereview.appspot.com/6448055/diff/2001/google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java#newcode183 google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java:183: * Whether to not suffix {@link #USER_AGENT_SUFFIX} to the ...
11 years, 9 months ago (2012-07-30 17:30:11 UTC) #2
rmistry
http://codereview.appspot.com/6448055/diff/2001/google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java File google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java (right): http://codereview.appspot.com/6448055/diff/2001/google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java#newcode183 google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java:183: * Whether to not suffix {@link #USER_AGENT_SUFFIX} to the ...
11 years, 9 months ago (2012-07-30 18:50:45 UTC) #3
yanivi
http://codereview.appspot.com/6448055/diff/2001/google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java File google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java (right): http://codereview.appspot.com/6448055/diff/2001/google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java#newcode187 google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java:187: * If a User-Agent is not specified in {@link ...
11 years, 9 months ago (2012-07-30 19:48:49 UTC) #4
rmistry
http://codereview.appspot.com/6448055/diff/2001/google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java File google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java (right): http://codereview.appspot.com/6448055/diff/2001/google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java#newcode187 google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java:187: * If a User-Agent is not specified in {@link ...
11 years, 9 months ago (2012-07-31 15:19:59 UTC) #5
yanivi
http://codereview.appspot.com/6448055/diff/9002/google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java File google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java (right): http://codereview.appspot.com/6448055/diff/9002/google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java#newcode867 google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java:867: headers.setUserAgent(originalUserAgent); don't call setUserAgent since it already has that ...
11 years, 9 months ago (2012-07-31 16:48:22 UTC) #6
rmistry
http://codereview.appspot.com/6448055/diff/9002/google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java File google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java (right): http://codereview.appspot.com/6448055/diff/9002/google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java#newcode867 google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java:867: headers.setUserAgent(originalUserAgent); On 2012/07/31 16:48:23, yanivi wrote: > don't call ...
11 years, 9 months ago (2012-07-31 17:29:02 UTC) #7
yanivi
LGTM http://codereview.appspot.com/6448055/diff/5002/google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java File google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java (right): http://codereview.appspot.com/6448055/diff/5002/google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java#newcode876 google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java:876: // set the original user agent back to ...
11 years, 9 months ago (2012-07-31 17:54:28 UTC) #8
rmistry
11 years, 9 months ago (2012-08-07 14:04:03 UTC) #9
http://codereview.appspot.com/6448055/diff/5002/google-http-client/src/main/j...
File
google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java
(right):

http://codereview.appspot.com/6448055/diff/5002/google-http-client/src/main/j...
google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java:876:
// set the original user agent back to the headers so that retries do not keep
appending to
On 2012/07/31 17:54:28, yanivi wrote:
> [optional] remove "to the headers" so it fits on 1 line

Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b