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

Issue 6448053: code review 6448053: httputil: accumulate X-Forwarded-For header info

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 8 months ago by bpowers
Modified:
11 years, 8 months ago
Reviewers:
bradfitz
CC:
golang-dev, bradfitz
Visibility:
Public.

Description

httputil: accumulate X-Forwarded-For header info If the X-Forwarded-For header already exists on a request, we should append our client's IP to it after a comma+space instead of overwriting it. Fixes issue 3846.

Patch Set 1 #

Patch Set 2 : diff -r c87a4b5ad6d7 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r c87a4b5ad6d7 https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 4 : diff -r c87a4b5ad6d7 https://go.googlecode.com/hg/ #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -2 lines) Patch
M src/pkg/net/http/httputil/reverseproxy.go View 1 2 3 1 chunk +8 lines, -2 lines 1 comment Download
M src/pkg/net/http/httputil/reverseproxy_test.go View 1 2 chunks +42 lines, -0 lines 0 comments Download

Messages

Total messages: 6
bpowers
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
11 years, 8 months ago (2012-07-26 14:39:58 UTC) #1
bradfitz
http://codereview.appspot.com/6448053/diff/4001/src/pkg/net/http/httputil/reverseproxy.go File src/pkg/net/http/httputil/reverseproxy.go (right): http://codereview.appspot.com/6448053/diff/4001/src/pkg/net/http/httputil/reverseproxy.go#newcode113 src/pkg/net/http/httputil/reverseproxy.go:113: if prior := outreq.Header.Get("X-Forwarded-For"); prior != "" { This ...
11 years, 8 months ago (2012-07-29 23:01:47 UTC) #2
bpowers
Hello golang-dev@googlegroups.com, bradfitz@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 8 months ago (2012-07-30 15:58:04 UTC) #3
bpowers
On Sun, Jul 29, 2012 at 7:01 PM, <bradfitz@golang.org> wrote: > > http://codereview.appspot.com/6448053/diff/4001/src/pkg/net/http/httputil/reverseproxy.go > File ...
11 years, 8 months ago (2012-07-30 16:00:21 UTC) #4
bradfitz
LGTM http://codereview.appspot.com/6448053/diff/8002/src/pkg/net/http/httputil/reverseproxy.go File src/pkg/net/http/httputil/reverseproxy.go (right): http://codereview.appspot.com/6448053/diff/8002/src/pkg/net/http/httputil/reverseproxy.go#newcode113 src/pkg/net/http/httputil/reverseproxy.go:113: if prior, ok := outreq.Header["X-Forwarded-For"]; ok { the ...
11 years, 8 months ago (2012-07-30 22:37:56 UTC) #5
bradfitz
11 years, 8 months ago (2012-07-30 22:39:15 UTC) #6
*** Submitted as http://code.google.com/p/go/source/detail?r=235bd4eb543e ***

httputil: accumulate X-Forwarded-For header info

If the X-Forwarded-For header already exists on a request, we
should append our client's IP to it after a comma+space instead
of overwriting it.

Fixes issue 3846.

R=golang-dev, bradfitz
CC=golang-dev
http://codereview.appspot.com/6448053

Committer: Brad Fitzpatrick <bradfitz@golang.org>
Sign in to reply to this message.

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