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

Issue 1669056: code review 1669056: Fix client code to insert spaces into keys per new sp...

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 7 months ago by Bill Neubauer
Modified:
14 years, 7 months ago
Reviewers:
rsc1
CC:
rsc, ukai, golang-dev
Visibility:
Public.

Description

Fix client code to insert spaces into keys per new spec, eliminating condition of leading and trailing spaces that confuse the HTTP header parsing routines.

Patch Set 1 #

Patch Set 2 : code review 1669056: Fix client code to escape strings with spaces, since t... #

Patch Set 3 : code review 1669056: Fix client code to escape strings with spaces, since t... #

Patch Set 4 : code review 1669056: Fix client code to insert spaces into keys per new sp... #

Total comments: 2

Patch Set 5 : code review 1669056: Fix client code to insert spaces into keys per new sp... #

Total comments: 1

Patch Set 6 : code review 1669056: Fix client code to insert spaces into keys per new sp... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -8 lines) Patch
M src/pkg/websocket/client.go View 1 2 3 4 5 2 chunks +9 lines, -8 lines 0 comments Download
M src/pkg/websocket/websocket_test.go View 1 2 3 4 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 14
Bill Neubauer
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 7 months ago (2010-07-25 15:00:32 UTC) #1
Bill Neubauer
Hello rsc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 7 months ago (2010-07-25 15:05:33 UTC) #2
rsc
What if key1 or key2 contains a " character? It looks like it can happen: ...
14 years, 7 months ago (2010-07-25 21:40:20 UTC) #3
rsc
adding ukai On Sun, Jul 25, 2010 at 14:40, Russ Cox <rsc@golang.org> wrote: > What ...
14 years, 7 months ago (2010-07-25 21:46:51 UTC) #4
rsc
actually adding ukai this time; not just talk. On Sun, Jul 25, 2010 at 14:46, ...
14 years, 7 months ago (2010-07-25 21:47:09 UTC) #5
Bill Neubauer
I think the issues are even more unclear with the websocket header. Since the spec ...
14 years, 7 months ago (2010-07-25 22:19:00 UTC) #6
Bill Neubauer
Hello rsc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 7 months ago (2010-07-26 02:00:43 UTC) #7
ukai
Looks good go me.
14 years, 7 months ago (2010-07-26 05:44:43 UTC) #8
ukai
http://codereview.appspot.com/1669056/diff/15001/16001 File src/pkg/websocket/client.go (right): http://codereview.appspot.com/1669056/diff/15001/16001#newcode137 src/pkg/websocket/client.go:137: // positions. positions other than the start or end ...
14 years, 7 months ago (2010-07-26 05:46:46 UTC) #9
rsc1
LGTM with ukai's suggestions
14 years, 7 months ago (2010-07-29 01:27:27 UTC) #10
Bill Neubauer
Hello rsc, ukai (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 7 months ago (2010-07-29 14:30:35 UTC) #11
rsc1
http://codereview.appspot.com/1669056/diff/21001/22001 File src/pkg/websocket/client.go (right): http://codereview.appspot.com/1669056/diff/21001/22001#newcode128 src/pkg/websocket/client.go:128: // positions other than the start or end of ...
14 years, 7 months ago (2010-07-30 03:39:09 UTC) #12
Bill Neubauer
Hello rsc, ukai (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 7 months ago (2010-07-30 04:17:53 UTC) #13
rsc
14 years, 7 months ago (2010-07-30 19:27:05 UTC) #14
*** Submitted as http://code.google.com/p/go/source/detail?r=2ccf0549da35 ***

websocket: fix bug involving spaces in header keys

R=rsc, ukai
CC=golang-dev
http://codereview.appspot.com/1669056

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