Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(226)

Issue 17340: Add q-values to languages in Accept-Language HTTP header to be compatible wit... (Closed)

Created:
11 years, 11 months ago by jungshik at Google
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Add q-values to languages in Accept-Language HTTP header to be compatible with Apache. Add q-values to charsets in Accept-Charset header in the same way as Firefox does. BUG=5899 TEST=HttpUtilTest.Accept* (net_unittest) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=8527

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 6

Patch Set 4 : '' #

Total comments: 13

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -10 lines) Patch
M chrome/browser/net/chrome_url_request_context.cc View 1 2 3 4 5 6 3 chunks +8 lines, -7 lines 1 comment Download
M net/http/http_util.h View 4 5 6 1 chunk +22 lines, -0 lines 1 comment Download
M net/http/http_util.cc View 4 5 6 3 chunks +46 lines, -2 lines 0 comments Download
M net/http/http_util_unittest.cc View 4 5 6 2 chunks +17 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
jungshik at Google
11 years, 11 months ago (2009-01-10 01:10:32 UTC) #1
wtc
This CL seems OK, but I'd like to ask you some questions first and then ...
11 years, 11 months ago (2009-01-13 01:42:49 UTC) #2
darin (slow to review)
http://codereview.chromium.org/17340/diff/203/204 File chrome/browser/net/chrome_url_request_context.cc (right): http://codereview.chromium.org/17340/diff/203/204#newcode25 Line 25: // with some web servers (e.g. Apache 2.0. ...
11 years, 11 months ago (2009-01-13 05:40:09 UTC) #3
jungshik at Google
Wan-Teh and Darin, thank you for the comment. I think all of your comments were ...
11 years, 11 months ago (2009-01-14 00:22:28 UTC) #4
darin (slow to review)
http://codereview.chromium.org/17340/diff/601/604 File net/http/http_util.cc (right): http://codereview.chromium.org/17340/diff/601/604#newcode473 Line 473: if (qvalue10 == 10) minor nit: even though ...
11 years, 11 months ago (2009-01-14 00:38:56 UTC) #5
wtc
LGTM. Just some nits below. Nit: I'd prefer that you use "qvalue" instead of "q-value" ...
11 years, 11 months ago (2009-01-14 00:50:51 UTC) #6
jungshik at Google
Thank you for going over again. In the latest patch set, I addressed the concerns ...
11 years, 11 months ago (2009-01-14 02:07:00 UTC) #7
wtc
LGTM. http://codereview.chromium.org/17340/diff/618/19 File chrome/browser/net/chrome_url_request_context.cc (left): http://codereview.chromium.org/17340/diff/618/19#oldcode103 Line 103: accept_charset_ += ",*,utf-8"; In the old code, ...
11 years, 11 months ago (2009-01-14 02:21:48 UTC) #8
jungshik at Google
Checked in with nit fixed. On 2009/01/14 02:21:48, wtc wrote: > http://codereview.chromium.org/17340/diff/618/19#oldcode103 > Line 103: ...
11 years, 11 months ago (2009-01-23 02:00:09 UTC) #9
wtc
11 years, 11 months ago (2009-01-26 21:20:02 UTC) #10
On 2009/01/23 02:00:09, Jungshik Shin wrote:
>
> On 2009/01/14 02:21:48, wtc wrote:
> 
> > http://codereview.chromium.org/17340/diff/618/19#oldcode103
> > Line 103: accept_charset_ += ",*,utf-8";
> > In the old code, we put * before utf-8.  In
> > the new code, we put utf-8 before *.  Does the
> > order matter?
> 
> I think the new code is better in 2009 :-). If the default encoding of a
user's
> choice is not available, we'd better ask for UTF-8 rather than 'any encoding'.

Good.  I agree that the old code doesn't make
sense.  (I remember I asked you about it before.)

Powered by Google App Engine
This is Rietveld 408576698