HF RL Explorer

Request.url turns a // path into an authority when the scope has no host

Request.url turns a // path into an authority when the scope has no host: a task in MergeReady-Bench (public subset) (Harbor dataset). When a request scope has neither a Host header nor a server entry, Request.url places scope "path" directly after the scheme, so a path that starts with // is…

The task

When a request scope has neither a `Host` header nor a `server` entry, `Request.url` places `scope["path"]` directly after the scheme, so a path that starts with `//` is parsed as an authority. A response built from that URL then emits a scheme-relative `Location`.

Part of relai-ai/mergeready-bench.