diff options
author | adamw <adam@warski.org> | 2017-11-27 11:59:43 +0100 |
---|---|---|
committer | adamw <adam@warski.org> | 2017-11-27 11:59:43 +0100 |
commit | fc07b4ac1c67c9a096fe1d63bf5049eabff8b6c1 (patch) | |
tree | 38472bed61b345dd92ce68969198bb517b165394 /core/src/test/scala/com | |
parent | 54722c73e472178f96416fbff8929d9a699d3e03 (diff) | |
download | sttp-fc07b4ac1c67c9a096fe1d63bf5049eabff8b6c1.tar.gz sttp-fc07b4ac1c67c9a096fe1d63bf5049eabff8b6c1.tar.bz2 sttp-fc07b4ac1c67c9a096fe1d63bf5049eabff8b6c1.zip |
Properly handling ipv6 in the uri interpolator
Diffstat (limited to 'core/src/test/scala/com')
-rw-r--r-- | core/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala b/core/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala index 1d6f838..92c90c3 100644 --- a/core/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala +++ b/core/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala @@ -60,6 +60,11 @@ class UriInterpolatorTests extends FunSuite with Matchers { (uri"http://192.168.1.2/x", s"http://192.168.1.2/x"), (uri"http://${"192.168.1.2"}/x", s"http://192.168.1.2/x") ), + "ipv6" -> List( + (uri"http://[::1]/x", s"http://[::1]/x"), + (uri"http://${"::1"}/x", s"http://[::1]/x"), + (uri"http://${"::1"}:${8080}/x", s"http://[::1]:8080/x") + ), "ports" -> List( (uri"http://example.com:8080", s"http://example.com:8080"), (uri"http://example.com:${8080}", s"http://example.com:8080"), |