Skip to content

Commit 89fce60

Browse files
authored
Provide http headers to pystac-client (#682)
1 parent 472ade7 commit 89fce60

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
@@ -2820,7 +2820,7 @@ def validate_item_pagination(
28202820

28212821
if use_pystac_client and collection is not None:
28222822
try:
2823-
client = Client.open(root_url)
2823+
client = Client.open(root_url, headers=r_session.headers)
28242824
search = client.search(
28252825
method="GET", collections=[collection], max_items=max_items, limit=5
28262826
)
@@ -2893,7 +2893,7 @@ def validate_item_pagination(
28932893
if use_pystac_client and collection is not None:
28942894
max_items = 100
28952895
try:
2896-
client = Client.open(root_url)
2896+
client = Client.open(root_url, headers=r_session.headers)
28972897
search = client.search(
28982898
method="POST",
28992899
collections=[collection],

0 commit comments

Comments
 (0)