Skip to content

Commit

Permalink
use correct content type when saving queries
Browse files Browse the repository at this point in the history
see #666 (comment)

(this regression was introduced when upgrading to osm-auth v2)
  • Loading branch information
tyrasd committed Jan 15, 2024
1 parent 93ff8a1 commit 8db5c43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/sync-with-osm.ts
Expand Up @@ -158,7 +158,7 @@ function saveQuery(new_query, callback) {
{
method: "PUT",
path: "/api/0.6/user/preferences",
options: {header: {"Content-Type": "text/xml"}},
headers: {"Content-Type": "text/xml"},
content: dom.firstChild.outerHTML
},
(err) => {
Expand Down

0 comments on commit 8db5c43

Please sign in to comment.