Skip to content

Commit ddc1d3b

Browse files
author
Johannes Duesing
committed
Fixed illegal usage of RawHeader
1 parent a304a95 commit ddc1d3b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/utils/CommonHelper.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@
1515
// limitations under the License.
1616
package utils
1717

18-
import akka.http.scaladsl.model.headers.RawHeader
18+
import akka.http.scaladsl.model.headers.{Host, RawHeader}
1919
import akka.http.scaladsl.model.{HttpMethod, HttpRequest}
20+
2021
import scala.collection.immutable.Seq
2122

2223
object CommonHelper {
@@ -40,7 +41,7 @@ object CommonHelper {
4041
val traefikHost = configuration.webApiInstance.traefikConfiguration.get.proxyUri
4142
val apiHostName = configuration.webApiInstance.traefikConfiguration.get.hostName
4243
//We are outside docker and target is inside -> Need to call traefik
43-
HttpRequest(method, addHttpProtocolIfNotExist(traefikHost) + path, Seq(RawHeader("Host", apiHostName)))
44+
HttpRequest(method, addHttpProtocolIfNotExist(traefikHost) + path, Seq(Host(apiHostName)))
4445
} else {
4546
HttpRequest(method, addHttpProtocolIfNotExist(configuration.webApiUri) + path)
4647
}

0 commit comments

Comments
 (0)