Index: Source/platform/network/WebSocketHandshakeRequest.cpp |
diff --git a/Source/platform/network/WebSocketHandshakeRequest.cpp b/Source/platform/network/WebSocketHandshakeRequest.cpp |
index 1cc3f1473210654fed1406a97724fb62b3cb3777..87b8ce7ac0a949fd7b6660e2b0696f9e358623ba 100644 |
--- a/Source/platform/network/WebSocketHandshakeRequest.cpp |
+++ b/Source/platform/network/WebSocketHandshakeRequest.cpp |
@@ -47,4 +47,14 @@ WebSocketHandshakeRequest::~WebSocketHandshakeRequest() |
{ |
} |
+// static |
tkent
2014/01/14 00:25:14
We don't add "// static" comment in Blink.
yhirano
2014/01/14 01:17:04
Done.
|
+void WebSocketHandshakeRequest::addAndMergeHeader(HTTPHeaderMap* map, const AtomicString& name, const AtomicString& value) |
+{ |
+ HTTPHeaderMap::AddResult result = map->add(name, value); |
+ if (!result.isNewEntry) { |
+ // Inspector expects the "\n" separated format. |
+ result.iterator->value = result.iterator->value + "\n" + String(value); |
+ } |
+} |
+ |
} // namespace WebCore |