deislabs / wagi

Write HTTP handlers in WebAssembly with a minimal amount of work

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SERVER_PROTOCOL format is not correct

linux-china opened this issue · comments

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 .

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

Fixed in #112.