Skip to content

Commit 0ee1381

Browse files
committed
Add headers to retry as well
1 parent 5c02977 commit 0ee1381

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pystac/stac_io.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,10 @@ def read_text_from_href(self, href: str) -> str:
457457
response = http.request(
458458
"GET",
459459
href,
460+
headers={
461+
"User-Agent": f"pystac/{pystac.__version__}",
462+
**self.headers,
463+
},
460464
retries=self.retry, # type: ignore
461465
)
462466
return cast(str, response.data.decode("utf-8"))

0 commit comments

Comments
 (0)