proxy: don't follow redirects for user provided JWKS urls + set custom user agent (#9514)

partially fixes https://github.com/neondatabase/cloud/issues/19249

ref https://docs.rs/reqwest/latest/reqwest/redirect/index.html
> By default, a Client will automatically handle HTTP redirects, having
a maximum redirect chain of 10 hops. To customize this behavior, a
redirect::Policy can be used with a ClientBuilder.
This commit is contained in:
Jakub Kołodziejczak
2024-10-25 14:04:41 +02:00
committed by GitHub
parent db900ae9d0
commit 9768f09f6b
2 changed files with 18 additions and 1 deletions

2
.gitignore vendored
View File

@@ -6,6 +6,8 @@ __pycache__/
test_output/
.vscode
.idea
*.swp
tags
neon.iml
/.neon
/integration_tests/.neon