bytecodealliance / bytecodealliance/wasmtime

WASIp3 set-path-and-query normalizes an empty path for `OPTIONS`

Open
#11,780 0 comments 0 reactions 0 assignees View on GitHub
bug wasi:impl wasi:spec
Dominant language
Rust
Stars
18.6k
Forks
1.8k
Avg merge
1d 18h
Merged PRs (30d)
126

Description

Quoth [RFC 9110 §4.2.3](https://www.rfc-editor.org/rfc/rfc9110.html#section-4.2.3):
> When not being used as the target of an OPTIONS request, an empty path component is equivalent to an absolute path of "/", so the normal form is to provide a path of "/" instead.

However Wasmtime always normalizes `""` to `"/"`, even if the method is set to `OPTIONS`.

Related to https://github.com/WebAssembly/WASI/issues/780.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.