deislabs / wagi

Write HTTP handlers in WebAssembly with a minimal amount of work
Apache License 2.0
889 stars 44 forks source link

SERVER_PROTOCOL format is not correct #100

Closed linux-china closed 3 years ago

linux-china commented 3 years ago

Now value of SERVER_PROTOCOL is http or https, but from https://datatracker.ietf.org/doc/html/rfc3875 the SERVER_PROTOCOL should be alike HTTP-Version = "HTTP" "/" 1*digit "." 1*digit, such as HTTP/1.1 .

technosophos commented 3 years ago

Looks like it was fetching protocol from the URL instead of version from the request object. I will fix.

radu-matei commented 3 years ago

Fixed in #112.