Skip to content

Commit

Permalink
Merge pull request #75 from GIScience/fix/gpx-result-handling
Browse files Browse the repository at this point in the history
fix: gpx response not returned correctly
  • Loading branch information
TheGreatRefrigerator committed Aug 9, 2023
2 parents 2504198 + c9a3865 commit 2eacee2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OrsBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class OrsBase {
throw error
}

return await orsResponse.json() || orsResponse.text()
return this.argsCache?.format === 'gpx' ? await orsResponse.text() : await orsResponse.json()
} finally {
clearTimeout(timeout)
}
Expand Down

0 comments on commit 2eacee2

Please sign in to comment.