Skip to content

haruyama480/go1210-request-streaming-failed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go1210-request-streaming-failed

This is sample that POST request via http/1 failed on binary built by go1.21.0, because request streaming is not supported via http/1 on Google Chrome. For details, see issue.

requisite

% go version
go version go1.21.0 darwin/arm64

darwin/arm64 may not be needed.

how to run

cp "$(go env GOROOT)/misc/wasm/wasm_exec.js" ./static
GOOS=js GOARCH=wasm go build -o static/main.wasm browser.go && go run server.go -port 8500

result

If run server.go with -tls option, the post request will success.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published