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

Issue 87660043: code review 87660043: net/html: Synchronize comments with code

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 9 months ago by s.jegen
Modified:
11 years, 9 months ago
Visibility:
Public.

Description

net/html: Synchronize comments with code

Patch Set 1 #

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

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

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

Messages

Total messages: 8
s.jegen
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
11 years, 9 months ago (2014-04-14 16:32:36 UTC) #1
s.jegen
The description should read "net/http: Synchronize comments with code", sorry for that.
11 years, 9 months ago (2014-04-14 16:38:19 UTC) #2
bradfitz
Doesn't seem worth it. Server requests may still be HTTP/1.0 anyway. Also, CL subject says ...
11 years, 9 months ago (2014-04-14 19:58:00 UTC) #3
s.jegen
On Mon, Apr 14, 2014 at 12:57:59PM -0700, Brad Fitzpatrick wrote: > Doesn't seem worth ...
11 years, 9 months ago (2014-04-14 20:35:31 UTC) #4
bradfitz
On Mon, Apr 14, 2014 at 1:35 PM, Silvan Jegen <s.jegen@gmail.com> wrote: > On Mon, ...
11 years, 9 months ago (2014-04-14 20:42:37 UTC) #5
s.jegen
On Mon, Apr 14, 2014 at 01:42:36PM -0700, Brad Fitzpatrick wrote: > On Mon, Apr ...
11 years, 9 months ago (2014-04-14 21:06:01 UTC) #6
bradfitz
R=close
11 years, 9 months ago (2014-04-14 21:09:14 UTC) #7
bradfitz
11 years, 9 months ago (2014-04-14 21:09:36 UTC) #8
No problem.



On Mon, Apr 14, 2014 at 2:05 PM, Silvan Jegen <s.jegen@gmail.com> wrote:

> On Mon, Apr 14, 2014 at 01:42:36PM -0700, Brad Fitzpatrick wrote:
> > On Mon, Apr 14, 2014 at 1:35 PM, Silvan Jegen <s.jegen@gmail.com> wrote:
> >
> > > On Mon, Apr 14, 2014 at 12:57:59PM -0700, Brad Fitzpatrick wrote:
> > > > Doesn't seem worth it. Server requests may still be HTTP/1.0 anyway.
> > >
> > > Do you mean server responses? That may be, but the requests will always
> > > be HTTP/1.1 I think:
> > >
> > >
> https://code.google.com/p/go/source/browse/src/pkg/net/http/request.go#48<
> https://code.google.com/p/go/source/browse/src/pkg/net/http/request.go#488
> >
> >
> >
> > No, requests to the server.  The Request struct is used for both outgoing
> > client requests, and incoming server requests.  A non-Go HTTP client can
> > set an "HTTP/1.0" ProtoMajor: 1 ProtoMinor: 0 request to a Go server.
>
> Ah, I see what you mean now.
>
>
> > So the comment you're changing is a valid case, hence my thinking the
> > change is arbitrary.
>
> Having the line
>
> // Client requests always use HTTP/1.1
>
> immediately precede a contradicting comment seemed suspicious to me.
> Maybe it would be better to remove the
>
> // "HTTP/1.0"
> // 1
> // 0
>
> comments since these are the only "annotated" fields anyways.
>
> Thanks for clearing that up and taking the time to respond. Please feel
> free to close the CL. It has been a misunderstanding on my part.
>
>
Sign in to reply to this message.

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