| Summary: | [curl] WebSocket tests are failing since r267931 | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Fujii Hironori <Hironori.Fujii> | ||||||
| Component: | Platform | Assignee: | Fujii Hironori <Hironori.Fujii> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | Basuke.Suzuki, darin, don.olmstead, ews-watchlist, galpeter, ross.kirsling, takashi.komori, webkit-bug-importer | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Fujii Hironori
2020-10-04 14:31:09 PDT
I guess `CurlStream::CurlStream` shouldn't use `setProtocol`.
> urlForConnection.setProtocol(url.protocolIs("wss") ? "https" : "http");
Created attachment 410483 [details]
WIP patch
Created attachment 410491 [details]
Patch
Comment on attachment 410491 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=410491&action=review > Source/WebCore/platform/network/curl/CurlStream.cpp:47 > // Libcurl is not responsible for the protocol handling. It just handles connection. > // Only scheme, host and port is required. > - URL urlForConnection; > - urlForConnection.setProtocol(url.protocolIs("wss") ? "https" : "http"); > - urlForConnection.setHostAndPort(url.hostAndPort()); > - m_curlHandle->setUrl(urlForConnection); > + url.setProtocol(url.protocolIs("wss") ? "https" : "http"); > + m_curlHandle->setUrl(WTFMove(url)); The code no longer matches the comment. Committed r267954: <https://trac.webkit.org/changeset/267954> |