Skip to content

Commit 42eaf6e

Browse files
author
Igor Antonov
committed
Fix request method AST compilation
1 parent 61d40db commit 42eaf6e

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

client-play-ws-standalone/src/main/scala/by/exonit/redmine/client/playws/standalone/PlayWSStandaloneWebClient.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ class PlayWSStandaloneWebClient(val client: StandaloneWSClient)
8181
})
8282
val finalUrl = url.getOrElse(throw new UnsupportedOperationException("Unable to compile request from provided AST: no base URL specified"))
8383
val baseRequest = client.url(finalUrl)
84+
.withMethod(method)
8485
.addHttpHeaders(headers.toSeq: _*)
8586
.addQueryStringParameters(queryParams: _*)
8687
val requestWithAuth = auth match {

client-play25-ws/src/main/scala/by/exonit/redmine/client/play25ws/Play25WSWebClient.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ class Play25WSWebClient(val client: WSClient)
8282
})
8383
val finalUrl = url.getOrElse(throw new UnsupportedOperationException("Unable to compile request from provided AST: no base URL specified"))
8484
val baseRequest = client.url(finalUrl)
85+
.withMethod(method)
8586
.withHeaders(headers.toSeq: _*)
8687
.withQueryString(queryParams: _*)
8788
val requestWithAuth = auth match {

client-play26-ws/src/main/scala/by/exonit/redmine/client/play26ws/Play26WSWebClient.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ class Play26WSWebClient(val client: WSClient)
8181
})
8282
val finalUrl = url.getOrElse(throw new UnsupportedOperationException("Unable to compile request from provided AST: no base URL specified"))
8383
val baseRequest = client.url(finalUrl)
84+
.withMethod(method)
8485
.addHttpHeaders(headers.toSeq: _*)
8586
.addQueryStringParameters(queryParams: _*)
8687
val requestWithAuth = auth match {

0 commit comments

Comments
 (0)