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

Unified Diff: sdk/lib/io/websocket_impl.dart

Issue 141293008: Fix websocket_impl.dart to work with websockets created by Chrome devtools. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/websocket_impl.dart
diff --git a/sdk/lib/io/websocket_impl.dart b/sdk/lib/io/websocket_impl.dart
index 6e2137f0543157646389b7c87cf2ea8edc1c7456..b169afac76c40f4d8f8a88b695b861e6599c162f 100644
--- a/sdk/lib/io/websocket_impl.dart
+++ b/sdk/lib/io/websocket_impl.dart
@@ -812,9 +812,10 @@ class _WebSocketImpl extends Stream implements WebSocket {
.then((request) {
// Setup the initial handshake.
request.headers
- ..add(HttpHeaders.CONNECTION, "upgrade")
+ ..add(HttpHeaders.CONNECTION, "Upgrade")
..set(HttpHeaders.UPGRADE, "websocket")
..set("Sec-WebSocket-Key", nonce)
+ ..set("Cache-Control", "no-cache")
..set("Sec-WebSocket-Version", "13");
if (protocols.isNotEmpty) {
request.headers.add("Sec-WebSocket-Protocol", protocols);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698