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

Issue 4746042: code review 4746042: http: sniffing algorithm. (Closed)

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

Description

http: sniffing algorithm. This follows draft-ietf-websec-mime-sniff-03 in its intent, though not its algorithmic specification.

Patch Set 1 #

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

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

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

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

Patch Set 6 : diff -r ba1bd8be90e2 https://go.googlecode.com/hg/ #

Total comments: 6

Patch Set 7 : diff -r dd479b99dcd3 https://go.googlecode.com/hg/ #

Total comments: 4

Patch Set 8 : diff -r dd479b99dcd3 https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 9 : diff -r 13faa632ba3a https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+205 lines, -10 lines) Patch
M src/pkg/http/server.go View 1 2 3 4 5 6 1 chunk +1 line, -4 lines 0 comments Download
M src/pkg/http/sniff.go View 1 2 3 4 5 6 7 8 1 chunk +164 lines, -6 lines 0 comments Download
A src/pkg/http/sniff_test.go View 1 2 3 4 5 6 1 chunk +40 lines, -0 lines 0 comments Download

Messages

Total messages: 11
dsymonds
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 9 months ago (2011-07-15 15:40:45 UTC) #1
rsc
http://codereview.appspot.com/4746042/diff/8003/src/pkg/http/server.go File src/pkg/http/server.go (right): http://codereview.appspot.com/4746042/diff/8003/src/pkg/http/server.go#newcode363 src/pkg/http/server.go:363: if ctype != "" { can delete http://codereview.appspot.com/4746042/diff/8003/src/pkg/http/sniff.go File ...
12 years, 9 months ago (2011-07-19 17:36:07 UTC) #2
dsymonds
PTAL http://codereview.appspot.com/4746042/diff/8003/src/pkg/http/server.go File src/pkg/http/server.go (right): http://codereview.appspot.com/4746042/diff/8003/src/pkg/http/server.go#newcode363 src/pkg/http/server.go:363: if ctype != "" { On 2011/07/19 17:36:07, ...
12 years, 9 months ago (2011-07-20 02:11:18 UTC) #3
rsc
> Text can't be a sniffSig in the list if we want to match MP4 ...
12 years, 9 months ago (2011-07-20 13:10:55 UTC) #4
rsc
On Wed, Jul 20, 2011 at 09:10, Russ Cox <rsc@golang.org> wrote: >> Text can't be ...
12 years, 9 months ago (2011-07-20 13:11:09 UTC) #5
rsc
Still confused about why text isn't a sniffer. http://codereview.appspot.com/4746042/diff/17001/src/pkg/http/sniff.go File src/pkg/http/sniff.go (right): http://codereview.appspot.com/4746042/diff/17001/src/pkg/http/sniff.go#newcode21 src/pkg/http/sniff.go:21: // ...
12 years, 9 months ago (2011-07-20 13:15:08 UTC) #6
dsymonds
Yeah, don't know what I was thinking about with text not being possible. I think ...
12 years, 9 months ago (2011-07-20 13:28:05 UTC) #7
rsc
LGTM
12 years, 9 months ago (2011-07-20 13:56:04 UTC) #8
rsc
http://codereview.appspot.com/4746042/diff/22002/src/pkg/http/sniff.go File src/pkg/http/sniff.go (right): http://codereview.appspot.com/4746042/diff/22002/src/pkg/http/sniff.go#newcode21 src/pkg/http/sniff.go:21: // Index of the first non-whitespace byte in data. ...
12 years, 9 months ago (2011-07-20 15:00:02 UTC) #9
dsymonds
http://codereview.appspot.com/4746042/diff/22002/src/pkg/http/sniff.go File src/pkg/http/sniff.go (right): http://codereview.appspot.com/4746042/diff/22002/src/pkg/http/sniff.go#newcode21 src/pkg/http/sniff.go:21: // Index of the first non-whitespace byte in data. ...
12 years, 9 months ago (2011-07-20 22:38:01 UTC) #10
dsymonds
12 years, 9 months ago (2011-07-20 22:38:44 UTC) #11
*** Submitted as http://code.google.com/p/go/source/detail?r=6675f47ceacf ***

http: sniffing algorithm.

This follows draft-ietf-websec-mime-sniff-03 in its intent,
though not its algorithmic specification.

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

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