mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-01-21 06:22:25 +01:00
This commit is contained in:
parent
4bd7c35c62
commit
147b5f5532
@ -158,13 +158,13 @@ class CorsPreflightRequest : public network::mojom::TrustedHeaderClient {
|
||||
// mojom::TrustedHeaderClient methods:
|
||||
void OnBeforeSendHeaders(const net::HttpRequestHeaders& headers,
|
||||
OnBeforeSendHeadersCallback callback) override {
|
||||
std::move(callback).Run(net::OK, absl::nullopt);
|
||||
std::move(callback).Run(net::OK, headers);
|
||||
}
|
||||
|
||||
void OnHeadersReceived(const std::string& headers,
|
||||
const net::IPEndPoint& remote_endpoint,
|
||||
OnHeadersReceivedCallback callback) override {
|
||||
std::move(callback).Run(net::OK, absl::nullopt, GURL());
|
||||
std::move(callback).Run(net::OK, headers, /*redirect_url=*/GURL());
|
||||
OnDestroy();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user