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

Issue 1610042: code review 1610042: http: reply to Expect 100-continue requests automatically (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 10 months ago by brad_danga_com
Modified:
13 years, 10 months ago
Reviewers:
CC:
rsc, adg, golang-dev
Visibility:
Public.

Description

http: reply to Expect 100-continue requests automatically This CL replaces my earlier http://codereview.appspot.com/1640044/show in which Continue handling was explicit. Instead, this CL makes it automatic. Reading from Body() is an implicit acknowledgement that the request headers were fine and the body is wanted. In that case, the 100 Continue response is written automatically when the request continues the "Expect: 100-continue" header.

Patch Set 1 #

Patch Set 2 : code review 1610042: http: reply to Expect 100-continue requests automatically #

Total comments: 3

Patch Set 3 : code review 1610042: http: reply to Expect 100-continue requests automatically #

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

Messages

Total messages: 6
brad_danga_com
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change.
13 years, 10 months ago (2010-06-12 21:06:38 UTC) #1
adg
http://codereview.appspot.com/1610042/diff/2001/3002 File src/pkg/http/server.go (right): http://codereview.appspot.com/1610042/diff/2001/3002#newcode59 src/pkg/http/server.go:59: wroteContinue bool // 100 Continue response was written With ...
13 years, 10 months ago (2010-06-13 07:14:17 UTC) #2
brad_danga_com
Hello rsc, adg (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 10 months ago (2010-06-13 16:17:25 UTC) #3
adg
LGTM Russ? On 13 June 2010 18:17, <bradfitz@gmail.com> wrote: > Hello rsc, adg (cc: golang-dev@googlegroups.com), ...
13 years, 10 months ago (2010-06-16 08:03:41 UTC) #4
rsc
LGTM
13 years, 10 months ago (2010-06-16 17:13:37 UTC) #5
rsc
13 years, 10 months ago (2010-06-16 17:15:47 UTC) #6
*** Submitted as http://code.google.com/p/go/source/detail?r=4cb083009bcc ***

http: reply to Expect 100-continue requests automatically

This CL replaces my earlier http://codereview.appspot.com/1640044/show
in which Continue handling was explicit.  Instead, this CL makes
it automatic.  Reading from Body() is an implicit acknowledgement
that the request headers were fine and the body is wanted.  In that
case, the 100 Continue response is written automatically when the
request continues the "Expect: 100-continue" header.

R=rsc, adg
CC=golang-dev
http://codereview.appspot.com/1610042

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