Skip to content

Commit

Permalink
Merge pull request #256 from stac-utils/pv/fix-core-check-for-root-an…
Browse files Browse the repository at this point in the history
…d-self-type

bbox with POST instead of GET
  • Loading branch information
philvarner authored Feb 11, 2023
2 parents f3d83fe + 02aba3f commit bed2272
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stac_api_validator/validations.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def retrieve(

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

Expand Down Expand Up @@ -1793,7 +1793,7 @@ def validate_item_search_bbox(
if Method.POST in methods:
# Valid POST query
_, body, resp_headers = retrieve(
Method.GET,
Method.POST,
search_url,
errors,
Context.ITEM_SEARCH,
Expand Down

0 comments on commit bed2272

Please sign in to comment.