summaryrefslogtreecommitdiffstats
path: root/net/websockets/websocket_handshake_handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/websockets/websocket_handshake_handler.cc')
-rw-r--r--net/websockets/websocket_handshake_handler.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/websockets/websocket_handshake_handler.cc b/net/websockets/websocket_handshake_handler.cc
index 2e62a18..4a424ca 100644
--- a/net/websockets/websocket_handshake_handler.cc
+++ b/net/websockets/websocket_handshake_handler.cc
@@ -226,9 +226,7 @@ HttpRequestInfo WebSocketHandshakeRequestHandler::GetRequestInfo(
const GURL& url, std::string* challenge) {
HttpRequestInfo request_info;
request_info.url = url;
- base::StringPiece method = status_line_.data();
- size_t method_end = base::StringPiece(
- status_line_.data(), status_line_.size()).find_first_of(" ");
+ size_t method_end = base::StringPiece(status_line_).find_first_of(" ");
if (method_end != base::StringPiece::npos)
request_info.method = std::string(status_line_.data(), method_end);