| Index: net/http/transport_security_state.cc
|
| diff --git a/net/http/transport_security_state.cc b/net/http/transport_security_state.cc
|
| index df2d95f103563b8dd40f27d4a8c805cabfc38b30..2515a4bec53b5f055e8e32bd1b5179cbcb2b6649 100644
|
| --- a/net/http/transport_security_state.cc
|
| +++ b/net/http/transport_security_state.cc
|
| @@ -244,18 +244,8 @@ std::string TransportSecurityState::CanonicalizeHost(const std::string& host) {
|
| break;
|
|
|
| for (size_t j = 0; j < label_length; ++j) {
|
| - // RFC 3490, 4.1, step 3
|
| - if (!IsSTD3ASCIIValidCharacter(new_host[i + 1 + j]))
|
| - return std::string();
|
| -
|
| new_host[i + 1 + j] = tolower(new_host[i + 1 + j]);
|
| }
|
| -
|
| - // step 3(b)
|
| - if (new_host[i + 1] == '-' ||
|
| - new_host[i + label_length] == '-') {
|
| - return std::string();
|
| - }
|
| }
|
|
|
| return new_host;
|
|
|