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

Issue 5580044: code review 5580044: net/http: add Request.RequestURI field (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 3 months ago by bradfitz
Modified:
12 years, 3 months ago
Reviewers:
CC:
golang-dev, rsc, dsymonds
Visibility:
Public.

Description

net/http: add Request.RequestURI field The new url.URL's parsing can be too canonicalizing for certain applications. By keeping the original request URI around, we give applications a gross escape hatch while keeping the URL package clean and simple for normal uses. (From a discussion with Gary Burd, Gustavo Niemeyer, and Russ Cox.) Fixes issue 2782

Patch Set 1 #

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

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -2 lines) Patch
src/pkg/net/http/client.go View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
src/pkg/net/http/client_test.go View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download
src/pkg/net/http/readrequest_test.go View 1 2 3 7 chunks +7 lines, -0 lines 0 comments Download
src/pkg/net/http/request.go View 1 2 3 2 chunks +8 lines, -2 lines 0 comments Download

Messages

Total messages: 6
bradfitz
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg
12 years, 3 months ago (2012-01-26 21:56:28 UTC) #1
rsc
LGTM but s/RawRequestURI/RequestURI/ RequestURI is by definition raw; see also the method on URL. Fixes ...
12 years, 3 months ago (2012-01-26 22:03:32 UTC) #2
bradfitz
Hello golang-dev@googlegroups.com, rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 3 months ago (2012-01-26 22:26:30 UTC) #3
bradfitz
PTAL It's now documented & enforced to be an error to set this in client ...
12 years, 3 months ago (2012-01-26 22:28:04 UTC) #4
dsymonds
LGTM
12 years, 3 months ago (2012-01-26 22:29:42 UTC) #5
bradfitz
12 years, 3 months ago (2012-01-26 22:37:17 UTC) #6
*** Submitted as http://code.google.com/p/go/source/detail?r=e7ec3472dc79 ***

net/http: add Request.RequestURI field

The new url.URL's parsing can be too canonicalizing for
certain applications. By keeping the original request URI
around, we give applications a gross escape hatch while
keeping the URL package clean and simple for normal uses.

(From a discussion with Gary Burd, Gustavo Niemeyer,
and Russ Cox.)

Fixes issue 2782

R=golang-dev, rsc, dsymonds
CC=golang-dev
http://codereview.appspot.com/5580044
Sign in to reply to this message.

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