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

Issue 6329045: code review 6329045: net/http: fix inserting of implicit redirects in serve mux

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

Description

net/http: fix inserting of implicit redirects in serve mux In serve mux, if pattern contains a host name, pass only the path to the redirect handler. Add tests for serve mux redirections.

Patch Set 1 #

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

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

Total comments: 1

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

Patch Set 5 : diff -r d730d2e4733d https://go.googlecode.com/hg/ #

Patch Set 6 : diff -r f8a77e2b7d0b https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r f8a77e2b7d0b https://go.googlecode.com/hg/ #

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -4 lines) Patch
M src/pkg/net/http/serve_test.go View 1 2 3 4 5 2 chunks +16 lines, -3 lines 0 comments Download
M src/pkg/net/http/server.go View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -1 line 0 comments Download

Messages

Total messages: 12
chressie1
Hello bradfitz@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
11 years, 10 months ago (2012-06-21 23:17:52 UTC) #1
bradfitz
This would need a new test or so also. http://codereview.appspot.com/6329045/diff/2002/src/pkg/net/http/server.go File src/pkg/net/http/server.go (right): http://codereview.appspot.com/6329045/diff/2002/src/pkg/net/http/server.go#newcode996 src/pkg/net/http/server.go:996: ...
11 years, 10 months ago (2012-06-21 23:20:49 UTC) #2
chressie1
On 2012/06/21 23:20:49, bradfitz wrote: > This would need a new test or so also. ...
11 years, 10 months ago (2012-06-21 23:33:59 UTC) #3
chressie1
PTAL On 2012/06/21 23:20:49, bradfitz wrote: > This would need a new test or so ...
11 years, 10 months ago (2012-06-22 11:21:55 UTC) #4
chressie1
Hello bradfitz@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 10 months ago (2012-06-29 14:15:55 UTC) #5
chressie1
PTAL. 1. Documented that strings.Index can't be -1, because the pattern contains at least one ...
11 years, 9 months ago (2012-07-22 11:47:26 UTC) #6
gobot
R=rsc (assigned by rsc@golang.org)
11 years, 9 months ago (2012-08-07 04:08:51 UTC) #7
chressie1
friendly ping
11 years, 8 months ago (2012-08-20 07:01:11 UTC) #8
bradfitz
ServeMux has historically been On Mon, Aug 20, 2012 at 5:01 PM, <chressie@gmail.com> wrote: > ...
11 years, 8 months ago (2012-08-20 07:27:51 UTC) #9
bradfitz
ServeMux has historically been Russ's thing, so I'll let him take it once he's back ...
11 years, 8 months ago (2012-08-20 07:36:46 UTC) #10
rsc
LGTM
11 years, 8 months ago (2012-08-31 15:58:12 UTC) #11
rsc
11 years, 8 months ago (2012-08-31 16:00:08 UTC) #12
*** Submitted as http://code.google.com/p/go/source/detail?r=c8cc72708080 ***

net/http: fix inserting of implicit redirects in serve mux

In serve mux, if pattern contains a host name, pass only the path to
the redirect handler.

Add tests for serve mux redirections.

R=rsc
CC=bradfitz, gobot, golang-dev
http://codereview.appspot.com/6329045

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

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