diff --git a/akka-docs/rst/scala/code/docs/http/scaladsl/server/directives/MiscDirectivesExamplesSpec.scala b/akka-docs/rst/scala/code/docs/http/scaladsl/server/directives/MiscDirectivesExamplesSpec.scala index c888383064..b2762d376f 100644 --- a/akka-docs/rst/scala/code/docs/http/scaladsl/server/directives/MiscDirectivesExamplesSpec.scala +++ b/akka-docs/rst/scala/code/docs/http/scaladsl/server/directives/MiscDirectivesExamplesSpec.scala @@ -8,6 +8,7 @@ import akka.http.scaladsl.model._ import akka.http.scaladsl.server._ import headers._ import docs.http.scaladsl.server.RoutingSpec +import java.net.InetAddress class MiscDirectivesExamplesSpec extends RoutingSpec { @@ -17,7 +18,7 @@ class MiscDirectivesExamplesSpec extends RoutingSpec { } // tests: - Get("/").withHeaders(`Remote-Address`(RemoteAddress("192.168.3.12"))) ~> route ~> check { + Get("/").withHeaders(`Remote-Address`(RemoteAddress(InetAddress.getByName("192.168.3.12")))) ~> route ~> check { responseAs[String] shouldEqual "Client's ip is 192.168.3.12" } } diff --git a/akka-http-core/src/test/scala/akka/http/impl/engine/parsing/HttpHeaderParserSpec.scala b/akka-http-core/src/test/scala/akka/http/impl/engine/parsing/HttpHeaderParserSpec.scala index 76927e605f..8d59a7efa0 100644 --- a/akka-http-core/src/test/scala/akka/http/impl/engine/parsing/HttpHeaderParserSpec.scala +++ b/akka-http-core/src/test/scala/akka/http/impl/engine/parsing/HttpHeaderParserSpec.scala @@ -135,7 +135,6 @@ class HttpHeaderParserSpec extends WordSpec with Matchers with BeforeAndAfterAll "parse and cache an X-Real-Ip with a hostname as it's value as a RawHeader" in new TestSetup() { parseAndCache("X-Real-Ip: akka.io\r\nx")() shouldEqual RawHeader("x-real-ip", "akka.io") } - "parse and cache a raw header" in new TestSetup(primed = false) { insert("hello: bob", 'Hello) val (ixA, headerA) = parseLine("Fancy-Pants: foo\r\nx")