Skip to content

Commit

Permalink
fix: remove check for authorization headers
Browse files Browse the repository at this point in the history
  • Loading branch information
gadomski committed Oct 9, 2024
1 parent b33d5ae commit 6a52ae1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/stac_api_validator/validations.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def is_geojson_type(maybe_type: Optional[str]) -> bool:

def get_catalog(data_dict: Dict[str, Any], r_session: Session) -> Catalog:
stac_io = StacIO.default()
if r_session.headers and r_session.headers.get("Authorization"):
if r_session.headers:
stac_io.headers = r_session.headers # noqa, type: ignore
stac_io.headers["Accept-Encoding"] = "*"
catalog = Catalog.from_dict(data_dict)
Expand Down Expand Up @@ -3238,7 +3238,11 @@ def validate_item_search_ids_does_not_override_all_other_params(
)
if body.get("features"): # type: ignore
_validate_search_ids_with_ids_no_override(
search_url, body["features"][0], methods, errors, r_session # type: ignore
search_url,
body["features"][0],
methods,
errors,
r_session, # type: ignore
)
else:
warnings += (
Expand Down

0 comments on commit 6a52ae1

Please sign in to comment.