Skip to content

Commit 9026f28

Browse files
gadomskivprivat-ads
authored andcommitted
fix: remove check for authorization headers
1 parent 302eb6a commit 9026f28

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/stac_api_validator/validations.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def is_geojson_type(maybe_type: Optional[str]) -> bool:
301301

302302
def get_catalog(data_dict: Dict[str, Any], r_session: Session) -> Catalog:
303303
stac_io = StacIO.default()
304-
if r_session.headers and r_session.headers.get("Authorization"):
304+
if r_session.headers:
305305
stac_io.headers = r_session.headers # noqa, type: ignore
306306
stac_io.headers["Accept-Encoding"] = "*"
307307
catalog = Catalog.from_dict(data_dict)
@@ -3238,7 +3238,11 @@ def validate_item_search_ids_does_not_override_all_other_params(
32383238
)
32393239
if body.get("features"): # type: ignore
32403240
_validate_search_ids_with_ids_no_override(
3241-
search_url, body["features"][0], methods, errors, r_session # type: ignore
3241+
search_url,
3242+
body["features"][0],
3243+
methods,
3244+
errors,
3245+
r_session, # type: ignore
32423246
)
32433247
else:
32443248
warnings += (

0 commit comments

Comments
 (0)