imroc / req

Simple Go HTTP client with Black Magic
https://req.cool
MIT License
4.12k stars 334 forks source link

HTTP3 doesn't work even when forced? #348

Closed avilabss closed 2 months ago

avilabss commented 2 months ago
func main() {
    req.DevMode()
    req.EnableForceHTTP3()

    req.MustGet("https://cloudflare-quic.com/")
}
go run main.go | grep "your browser"
<p>When loading this page from Cloudflare's edge network, your browser used <strong>HTTP/2</strong>.</p>