[Webkit-unassigned] [Bug 286951] New: [Results DB] Refuses HEAD requests with 405 METHOD NOT ALLOWED

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 3 13:12:05 PST 2025


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

            Bug ID: 286951
           Summary: [Results DB] Refuses HEAD requests with 405 METHOD NOT
                    ALLOWED
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Enhancement
          Priority: P4
         Component: Tools / Tests
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: gsnedders at apple.com
                CC: webkit-bug-importer at group.apple.com

```
% curl --head --verbose 'https://results.webkit.org/api/results/layout-tests/fonts/font-weight-invalid-crash.html?flavor=wk1&recent=false'
...
> HEAD /api/results/layout-tests/fonts/font-weight-invalid-crash.html?flavor=wk1&recent=false HTTP/1.1
> Host: results.webkit.org
> User-Agent: curl/8.7.1
> Accept: */*
> 
* Request completely sent off
< HTTP/1.1 405 METHOD NOT ALLOWED
```

This is technically allowed per spec, c.f. https://httpwg.org/specs/rfc9110.html#rfc.section.9.3.2, but we should support this ("The server SHOULD send the same header fields in response to a HEAD request as it would have sent if the request method had been GET").

We can probably reasonably implement this without actually fetching all the results, omitted headers like Content-Length (again, see the spec).

-- 
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/20250203/0466b885/attachment.htm>


More information about the webkit-unassigned mailing list