http: avoid failures connecting to HTTP2 servers supporting server push
This commit is contained in:
parent
0dc4b843e7
commit
acc05ca02f
1 changed files with 5 additions and 1 deletions
|
|
@ -37,7 +37,11 @@ def options(opts \\ []) do
|
|||
conn_opts: [
|
||||
# Do NOT add cacerts here as this will cause issues for plain HTTP connections!
|
||||
# (when we upgrade our deps to Mint >= 1.6.0 we can also explicitly enable "inet4: true")
|
||||
transport_opts: [inet6: true]
|
||||
transport_opts: [inet6: true],
|
||||
# up to at least version 0.20.0, Finch leaves server_push enabled by default for HTTP2,
|
||||
# but will actually raise an exception when receiving such a response. Tell servers we don't want it.
|
||||
# see: https://github.com/sneako/finch/issues/325
|
||||
client_settings: [enable_push: false]
|
||||
]
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue