Added some important notes
This commit is contained in:
parent
d02b310372
commit
a060c22222
|
@ -6,3 +6,6 @@ Made using the [jsStreams](https://git.ailur.dev/Ailur/jsStreams) library.
|
||||||
[![Go Report Card](https://goreportcard.com/badge/git.ailur.dev/ailur/jsFetch)](https://goreportcard.com/report/git.ailur.dev/ailur/jsFetch) [![Go Reference](https://pkg.go.dev/badge/git.ailur.dev/ailur/jsFetch.svg)](https://pkg.go.dev/git.ailur.dev/ailur/jsFetch)
|
[![Go Report Card](https://goreportcard.com/badge/git.ailur.dev/ailur/jsFetch)](https://goreportcard.com/report/git.ailur.dev/ailur/jsFetch) [![Go Reference](https://pkg.go.dev/badge/git.ailur.dev/ailur/jsFetch.svg)](https://pkg.go.dev/git.ailur.dev/ailur/jsFetch)
|
||||||
|
|
||||||
The API is exactly the same as net/http.
|
The API is exactly the same as net/http.
|
||||||
|
|
||||||
|
## Important note
|
||||||
|
It is common for it to return the error "Failed to fetch" with the error ERR_H2_OR_QUIC_REQUIRED in Chromium-based browsers. To fix this, you are able to modify the request to set `request.DisableStreamedClient` to `true`. This is because Chromium has a method of upload ReadableStream data that requires HTTP/2 or QUIC to be enabled for security reasons.
|
2
main.go
2
main.go
|
@ -400,7 +400,7 @@ type Request struct {
|
||||||
// HTTP/2 or QUIC to be enabled when using V8, which is not always the case, particularly on
|
// HTTP/2 or QUIC to be enabled when using V8, which is not always the case, particularly on
|
||||||
// older servers or test servers.
|
// older servers or test servers.
|
||||||
//
|
//
|
||||||
// If DisableStreamedClientChecks is set to true, the client will first attempt to detect if
|
// If DisableStreamedClientChecks is set to false, the client will first attempt to detect if
|
||||||
// the server supports HTTP/2 or QUIC and if you are running a supported JavaScript engine.
|
// the server supports HTTP/2 or QUIC and if you are running a supported JavaScript engine.
|
||||||
// Supported browser engines include:
|
// Supported browser engines include:
|
||||||
// - V8 (Chrome, Edge, Opera)
|
// - V8 (Chrome, Edge, Opera)
|
||||||
|
|
Loading…
Reference in New Issue