WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
82432
[WebSocket]The Sec-WebSocket-Protocol must not appear more than once in an HTTP response
https://bugs.webkit.org/show_bug.cgi?id=82432
Summary
[WebSocket]The Sec-WebSocket-Protocol must not appear more than once in an HT...
Li Yin
Reported
2012-03-28 00:23:12 PDT
From RFC6455
http://tools.ietf.org/html/rfc6455#section-11.3.4
The |Sec-WebSocket-Protocol| header field MAY appear multiple times in an HTTP request (which is logically the same as a single |Sec-WebSocket-Protocol| header field that contains all values). However, the |Sec-WebSocket-Protocol| header field MUST NOT appear more than once in an HTTP response.
Attachments
Patch
(7.01 KB, patch)
2012-03-28 00:32 PDT
,
Li Yin
no flags
Details
Formatted Diff
Diff
Patch
(7.02 KB, patch)
2012-03-28 01:10 PDT
,
Li Yin
no flags
Details
Formatted Diff
Diff
Patch
(7.02 KB, patch)
2012-03-28 01:40 PDT
,
Li Yin
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Li Yin
Comment 1
2012-03-28 00:32:57 PDT
Created
attachment 134230
[details]
Patch
Yuta Kitamura
Comment 2
2012-03-28 01:03:19 PDT
Comment on
attachment 134230
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=134230&action=review
I have just one nit. Your patch looks okay. Please get it reviewed by a WebKit reviewer.
> LayoutTests/http/tests/websocket/tests/hybi/handshake-fail-by-more-protocol-header.html:10 > +description("Test that WebSocket handshake fails if there are more one Sec-WebSocket-Protocol header field in the response.");
nit: "more" -> "more than"
Li Yin
Comment 3
2012-03-28 01:06:18 PDT
(In reply to
comment #2
)
> > LayoutTests/http/tests/websocket/tests/hybi/handshake-fail-by-more-protocol-header.html:10 > > +description("Test that WebSocket handshake fails if there are more one Sec-WebSocket-Protocol header field in the response."); > > nit: "more" -> "more than"
Thanks for your detailed review. I will change it.
Li Yin
Comment 4
2012-03-28 01:10:57 PDT
Created
attachment 134233
[details]
Patch
Kent Tamura
Comment 5
2012-03-28 01:24:07 PDT
Comment on
attachment 134233
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=134233&action=review
> Source/WebCore/ChangeLog:4 > + [WebSocket]The Sec-WebSocket-Accept must not appear more than once in an HTTP response > +
https://bugs.webkit.org/show_bug.cgi?id=82432
Do you mean Sec-WebSocket-Protocol?
Li Yin
Comment 6
2012-03-28 01:40:51 PDT
Created
attachment 134236
[details]
Patch
Kent Tamura
Comment 7
2012-03-28 01:52:37 PDT
Comment on
attachment 134236
[details]
Patch ok
WebKit Review Bot
Comment 8
2012-03-28 02:12:15 PDT
Comment on
attachment 134236
[details]
Patch Clearing flags on attachment: 134236 Committed
r112377
: <
http://trac.webkit.org/changeset/112377
>
WebKit Review Bot
Comment 9
2012-03-28 02:12:21 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug