Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions overpass/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,13 @@ def get(self,
for row in reader:
result.append(row)
return result
elif content_type == "text/xml" or content_type == "application/xml":
elif content_type in ("text/xml", "application/xml", "application/osm3s+xml"):
return r.text
elif content_type == "application/json":
response = json.loads(r.text)

response = json.loads(r.text)
if not build:
return response

# Check for valid answer from Overpass.
# A valid answer contains an 'elements' key at the root level.
Expand Down