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

Issue 4538111: code review 4538111: http: ServeFile shouldn't send Content-Length when Cont... (Closed)

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

Description

http: ServeFile shouldn't send Content-Length when Content-Encoding is set Fixes issue 1905

Patch Set 1 #

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

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -2 lines) Patch
M src/pkg/http/fs.go View 1 1 chunk +3 lines, -1 line 0 comments Download
M src/pkg/http/fs_test.go View 1 2 3 2 chunks +16 lines, -1 line 0 comments Download

Messages

Total messages: 9
bradfitz
Hello rsc@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg
14 years, 4 months ago (2011-06-02 20:08:29 UTC) #1
bradfitz
Hello rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 4 months ago (2011-06-02 20:10:55 UTC) #2
bradfitz
er, added "Fixes issue nnn" and %q -> %d. On Thu, Jun 2, 2011 at ...
14 years, 4 months ago (2011-06-02 20:11:19 UTC) #3
rsc
I don't understand. When is it okay to set Content-Encoding behind ServeFile's back?
14 years, 4 months ago (2011-06-02 20:12:05 UTC) #4
bradfitz
On Thu, Jun 2, 2011 at 1:12 PM, <rsc@golang.org> wrote: > I don't understand. > ...
14 years, 4 months ago (2011-06-02 20:16:19 UTC) #5
rsc
Okay, interesting. Does the http server know enough to close the connection after such a ...
14 years, 4 months ago (2011-06-02 20:23:14 UTC) #6
bradfitz
On Thu, Jun 2, 2011 at 1:23 PM, Russ Cox <rsc@golang.org> wrote: > Okay, interesting. ...
14 years, 4 months ago (2011-06-02 20:24:00 UTC) #7
rsc
LGTM
14 years, 4 months ago (2011-06-02 20:28:44 UTC) #8
bradfitz
14 years, 4 months ago (2011-06-02 20:36:56 UTC) #9
*** Submitted as http://code.google.com/p/go/source/detail?r=85edd97537ba ***

http: ServeFile shouldn't send Content-Length when Content-Encoding is set

Fixes issue 1905

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

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