We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a06de7 commit 4387aafCopy full SHA for 4387aaf
src/stac_auth_proxy/utils/di.py
src/stac_auth_proxy/utils/requests.py
@@ -4,23 +4,9 @@
4
import re
5
from urllib.parse import urlparse
6
7
-from httpx import Headers
8
from starlette.requests import Request
9
10
11
-def safe_headers(headers: Headers) -> dict[str, str]:
12
- """Scrub headers that should not be proxied to the client."""
13
- excluded_headers = [
14
- "content-length",
15
- "content-encoding",
16
- ]
17
- return {
18
- key: value
19
- for key, value in headers.items()
20
- if key.lower() not in excluded_headers
21
- }
22
-
23
24
def extract_variables(url: str) -> dict:
25
"""
26
Extract variables from a URL path. Being that we use a catch-all endpoint for the proxy,
tests/test_di.py
0 commit comments