Index: net/socket/ssl_client_socket_openssl.cc |
diff --git a/net/socket/ssl_client_socket_openssl.cc b/net/socket/ssl_client_socket_openssl.cc |
index 62e0e724b5be9fbc929fb363f4c3956aa8893d8d..b3690a9bfc1b0d02747ee74f6d05132cecfb6cce 100644 |
--- a/net/socket/ssl_client_socket_openssl.cc |
+++ b/net/socket/ssl_client_socket_openssl.cc |
@@ -764,7 +764,7 @@ int SSLClientSocketOpenSSL::SelectNextProtoCallback(unsigned char** out, |
unsigned int inlen) { |
#if defined(OPENSSL_NPN_NEGOTIATED) |
if (ssl_config_.next_protos.empty()) { |
- *out = "http/1.1"; |
+ *out = reinterpret_cast<uint8*>(const_cast<char*>("http/1.1")); |
*outlen = 8; |
npn_status_ = SSLClientSocket::kNextProtoUnsupported; |
return SSL_TLSEXT_ERR_OK; |
@@ -790,6 +790,7 @@ int SSLClientSocketOpenSSL::SelectNextProtoCallback(unsigned char** out, |
NOTREACHED() << status; |
break; |
} |
+ DVLOG(2) << "next protocol: '" << npn_proto_ << "' status: " << npn_status_; |
#endif |
return SSL_TLSEXT_ERR_OK; |
} |