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

Issue 11231070: Fix bug in HTTP client request generation (Closed)

Created:
8 years, 2 months ago by Søren Gjesse
Modified:
8 years, 2 months ago
Reviewers:
Mads Ager (google)
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fix bug in HTTP client request generation If an HTTP request with an empty path was done using the HttpClient (either for normal HTTP or for upgrading to web sockets) the generated HTTP request line was invalid. The empty path was used in the request line e.g. GET HTTP/1.1 instead of GET / HTTP/1.1 This is now fixed by using / if no path is specified. This is specified in RFC 2616 section 3.2.2. BUG=6185 R=ager@google.com Committed: https://code.google.com/p/dart/source/detail?r=13939

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -13 lines) Patch
M runtime/bin/http_impl.dart View 1 chunk +4 lines, -5 lines 0 comments Download
M runtime/bin/http_parser.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/bin/websocket_impl.dart View 1 chunk +4 lines, -5 lines 0 comments Download
M tests/standalone/io/http_client_test.dart View 1 chunk +9 lines, -3 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Søren Gjesse
8 years, 2 months ago (2012-10-23 09:19:55 UTC) #1
Mads Ager (google)
8 years, 2 months ago (2012-10-23 09:23:34 UTC) #2
LGTM!

Powered by Google App Engine
This is Rietveld 408576698