Skip to content

Commit

Permalink
2ASCII
Browse files Browse the repository at this point in the history
  • Loading branch information
etitov committed Dec 8, 2020
1 parent 1d123ed commit 968ed4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/src/main/resources/soap12.scala.template
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ trait SoapClients { this: HttpClients =>
case x => sys.error("unexpected non-elem: " + x.toString)
}}
val contentType = "application/soap+xml; charset=utf-8" +
(action map {"""; action="%s"""".format(_)} getOrElse {""})
(action map {uri => """; action="%s"""".format(uri.toASCIIString)} getOrElse {""})
val headers = Map[String, String]("Content-Type" -> contentType)
val s = httpClient.request(r map {_.toString} getOrElse {""}, address, headers)

Expand Down
2 changes: 1 addition & 1 deletion cli/src/main/resources/soap12_async.scala.template
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ trait SoapClientsAsync {
case x => sys.error("unexpected non-elem: " + x.toString)
}}
val contentType = "application/soap+xml; charset=utf-8" +
(action map {"""; action="%s"""".format(_)} getOrElse {""})
(action map {uri => """; action="%s"""".format(uri.toASCIIString)} getOrElse {""})
val headers = Map[String, String]("Content-Type" -> contentType)
val ftr: Future[String] = httpClient.request(r map {_.toString} getOrElse {""}, address, headers)
ftr map { s: String =>
Expand Down

0 comments on commit 968ed4c

Please sign in to comment.