Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(254)

Issue 173523004: Use a better error message for bad status lines. (Closed)

Created:
6 years, 10 months ago by Adam Rice
Modified:
6 years, 10 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Previously, an unparseable status line would give an "Unexpected response code: 200" console error, which didn't make much sense. This is because HttpStreamParser synthesises an "HTTP/0.9 200 OK" status line if it doesn't see the string "HTTP" within the first 8 bytes of the response. Use a specific "Invalid status line" error message in this case instead. BUG=345568 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=252536

Patch Set 1 #

Patch Set 2 : Update WebSocketStreamCreateTest.MalformedResponse #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -4 lines) Patch
M net/websockets/websocket_basic_handshake_stream.cc View 1 chunk +12 lines, -3 lines 0 comments Download
M net/websockets/websocket_stream_test.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
Adam Rice
6 years, 10 months ago (2014-02-21 04:16:02 UTC) #1
tyoshino (SeeGerritForStatus)
lgtm please write that this clamping is done not in HttpResponseHeaders but in HttpStreamParser in ...
6 years, 10 months ago (2014-02-21 08:04:50 UTC) #2
Adam Rice
The CQ bit was checked by ricea@chromium.org
6 years, 10 months ago (2014-02-21 09:33:19 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ricea@chromium.org/173523004/50001
6 years, 10 months ago (2014-02-21 09:33:25 UTC) #4
commit-bot: I haz the power
6 years, 10 months ago (2014-02-21 11:03:20 UTC) #5
Message was sent while issue was closed.
Change committed as 252536

Powered by Google App Engine
This is Rietveld 408576698