We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Content-Type
application/x-www-form-urlencoded
1 parent 5e2b90b commit 9abf324Copy full SHA for 9abf324
src/main/java/org/openstreetmap/josm/plugins/mapillary/oauth/OAuthPortListener.java
@@ -80,6 +80,7 @@ public void run() {
80
client.setHeader("Authorization", "OAuth " + MapillaryConfig.getUrls().getClientSecret());
81
client.setRequestBody(("grant_type=authorization_code&client_id=" + MapillaryConfig.getUrls().getClientId()
82
+ "&code=" + authorizationCode).getBytes(StandardCharsets.UTF_8));
83
+ client.setHeader("Content-Type", "application/x-www-form-urlencoded");
84
85
final HttpClient.Response response = client.connect();
86
try (JsonReader jsonReader = Json.createReader(response.getContentReader())) {
0 commit comments