[Webkit-unassigned] [Bug 222558] HTTP method and version in web inspector network tab are not what WebKit actually sent

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 15 01:12:36 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=222558

--- Comment #13 from Carlos Garcia Campos <cgarcia at igalia.com> ---
I'm confused about the screenshot because the status line is not shown here without the patch, the whole line is skipped when the protocol is not present:

let protocol = this._resource.protocol || "";
let urlComponents = this._resource.urlComponents;
if (protocol.startsWith("http/1")) {
    // HTTP/1.1 request line:                                                                                                                                                         
    // https://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html#sec5.1                                                                                                                  
    let requestLine = `${this._resource.requestMethod} ${urlComponents.path} ${protocol.toUpperCase()}`;
    this._requestHeadersSection.appendKeyValuePair(requestLine, null, "h1-status");
} else if (protocol === "h2") {
    // HTTP/2 Request pseudo headers:                                                                                                                                                 
    // https://tools.ietf.org/html/rfc7540#section-8.1.2.3                                                                                                                            
    this._requestHeadersSection.appendKeyValuePair(":method", this._resource.requestMethod, "h2-pseudo-header");
    this._requestHeadersSection.appendKeyValuePair(":scheme", urlComponents.scheme, "h2-pseudo-header");
    this._requestHeadersSection.appendKeyValuePair(":authority", WI.h2Authority(urlComponents), "h2-pseudo-header");
    this._requestHeadersSection.appendKeyValuePair(":path", WI.h2Path(urlComponents), "h2-pseudo-header");
}

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210415/90c9f7b3/attachment-0001.htm>


More information about the webkit-unassigned mailing list