Skip to content

Commit

Permalink
Merge pull request #626 from wri/fix_add_geostore_proxy
Browse files Browse the repository at this point in the history
Geostore proxy bugfix: RW returns a 200 on successful geostore creation, not a 201
  • Loading branch information
dmannarino authored Jan 29, 2025
2 parents 8af1960 + 078ca0a commit 2a6d62c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/utils/rw_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ async def create_rw_geostore(
else:
response = await client.post(url, json=payload.dict())

if response.status_code == 201:
if response.status_code == 200:
return RWGeostoreResponse.parse_obj(response.json())
else:
raise HTTPException(response.status_code, response.text)
Expand Down

0 comments on commit 2a6d62c

Please sign in to comment.