Skip to content

Commit 4387aaf

Browse files
committed
Rm unused code
1 parent 9a06de7 commit 4387aaf

File tree

3 files changed

+0
-120
lines changed

3 files changed

+0
-120
lines changed

src/stac_auth_proxy/utils/di.py

Lines changed: 0 additions & 50 deletions
This file was deleted.

src/stac_auth_proxy/utils/requests.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,9 @@
44
import re
55
from urllib.parse import urlparse
66

7-
from httpx import Headers
87
from starlette.requests import Request
98

109

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-
2410
def extract_variables(url: str) -> dict:
2511
"""
2612
Extract variables from a URL path. Being that we use a catch-all endpoint for the proxy,

tests/test_di.py

Lines changed: 0 additions & 56 deletions
This file was deleted.

0 commit comments

Comments
 (0)