Skip to content

Commit

Permalink
fix: correctly obtain params for post requests
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Dec 8, 2023
1 parent 22e3a24 commit 8fa5aba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/masquerade/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,10 @@ def geocode_addresses():

request_wkid, out_spatial_reference = get_out_spatial_reference(request)

addresses = json.loads(request.form["addresses"])
if request.method == "POST":
addresses = json.loads(request.form["addresses"])
else:
addresses = json.loads(request.args["addresses"])

locations = []

Expand Down

0 comments on commit 8fa5aba

Please sign in to comment.