Skip to content

Commit 02aba3f

Browse files
committed
bbox with POST instead of GET
1 parent 6918302 commit 02aba3f

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
@@ -361,7 +361,7 @@ def retrieve(
361361

362362
if resp.status_code != status_code:
363363
errors += (
364-
f"[{context}] {method} {url} params={params} body={body}"
364+
f"[{context}] {method} {url} params={params} body={json.dumps(body) if body else ''}"
365365
f" had unexpected status code {resp.status_code} instead of {status_code}: {additional}"
366366
)
367367

@@ -1793,7 +1793,7 @@ def validate_item_search_bbox(
17931793
if Method.POST in methods:
17941794
# Valid POST query
17951795
_, body, resp_headers = retrieve(
1796-
Method.GET,
1796+
Method.POST,
17971797
search_url,
17981798
errors,
17991799
Context.ITEM_SEARCH,

0 commit comments

Comments
 (0)