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

Issue 48060043: code review 48060043: net/http: remove todos from cookie code (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by volker.dobler
Modified:
11 years, 2 months ago
Reviewers:
bradfitz
CC:
bradfitz, nigeltao, golang-codereviews
Visibility:
Public.

Description

net/http: remove todos from cookie code The Domain and Path field of a parsed cookie have been the unprocessed wire data since Go 1.0; this seems to be okay for most applications so let's keep it. Returning the unprocessed wire data makes it easy to handle nonstandard or even broken clients without consulting Raw or Unparsed of a cookie. The RFC 6265 parsing rules for domain and path are currently buried in net/http/cookiejar but could be exposed in net/http if necessary.

Patch Set 1 #

Patch Set 2 : diff -r 9d0f388bbe40 https://code.google.com/p/go/ #

Patch Set 3 : diff -r 9d0f388bbe40 https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -2 lines) Patch
M src/pkg/net/http/cookie.go View 1 2 chunks +0 lines, -2 lines 0 comments Download

Messages

Total messages: 3
volker.dobler
Hello bradfitz@golang.org, nigeltao@golang.org (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
11 years, 2 months ago (2014-01-06 10:51:54 UTC) #1
bradfitz
LGTM On Mon, Jan 6, 2014 at 2:51 AM, <dr.volker.dobler@gmail.com> wrote: > Reviewers: bradfitz, nigeltao, ...
11 years, 2 months ago (2014-01-06 18:00:51 UTC) #2
bradfitz
11 years, 2 months ago (2014-01-06 18:01:00 UTC) #3
*** Submitted as https://code.google.com/p/go/source/detail?r=8103124b1f63 ***

net/http: remove todos from cookie code

The Domain and Path field of a parsed cookie have been
the unprocessed wire data since Go 1.0; this seems to
be okay for most applications so let's keep it.

Returning the unprocessed wire data makes it easy to
handle nonstandard or even broken clients without
consulting Raw or Unparsed of a cookie.

The RFC 6265 parsing rules for domain and path are
currently buried in net/http/cookiejar but could be
exposed in net/http if necessary.

R=bradfitz, nigeltao
CC=golang-codereviews
https://codereview.appspot.com/48060043

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