Skip to content

Commit ea1f138

Browse files
committed
Provide http headers to pystac-client
1 parent aab780c commit ea1f138

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/stac_api_validator/validations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2799,7 +2799,7 @@ def validate_item_pagination(
27992799

28002800
if use_pystac_client and collection is not None:
28012801
try:
2802-
client = Client.open(root_url)
2802+
client = Client.open(root_url, headers=r_session.headers)
28032803
search = client.search(
28042804
method="GET", collections=[collection], max_items=max_items, limit=5
28052805
)
@@ -2872,7 +2872,7 @@ def validate_item_pagination(
28722872
if use_pystac_client and collection is not None:
28732873
max_items = 100
28742874
try:
2875-
client = Client.open(root_url)
2875+
client = Client.open(root_url, headers=r_session.headers)
28762876
search = client.search(
28772877
method="POST",
28782878
collections=[collection],

0 commit comments

Comments
 (0)