- From: Yutaka Hirano <notifications@github.com>
- Date: Thu, 14 Nov 2019 00:41:33 -0800
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 14 November 2019 08:41:35 UTC
Actually that is similar to what Chromium is doing, assuming my code reading is correct (@MattMenke2, please correct me if I'm wrong).
```
bool HttpUtil::IsMethodSafe(base::StringPiece method) {
return method == "GET" || method == "HEAD" || method == "OPTIONS" ||
method == "TRACE";
}
...
int HttpNetworkTransaction::Start(const HttpRequestInfo* request_info,
CompletionOnceCallback callback,
const NetLogWithSource& net_log) {
...
if (HttpUtil::IsMethodSafe(request_info->method)) {
can_send_early_data_ = true;
}
...
}
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/538#issuecomment-553784404
Received on Thursday, 14 November 2019 08:41:35 UTC