aboutsummaryrefslogtreecommitdiff
path: root/core/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala
diff options
context:
space:
mode:
authoradamw <adam@warski.org>2017-11-25 10:59:09 +0100
committeradamw <adam@warski.org>2017-11-25 10:59:09 +0100
commit2db11d0cdcc2e6bc0ad2fd321d9c15693ee71876 (patch)
tree0274e89c469eee44ab74e843d8bb89f4afaca53d /core/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala
parent7611a82978da965d133d78dc8787b8edefee1661 (diff)
downloadsttp-2db11d0cdcc2e6bc0ad2fd321d9c15693ee71876.tar.gz
sttp-2db11d0cdcc2e6bc0ad2fd321d9c15693ee71876.tar.bz2
sttp-2db11d0cdcc2e6bc0ad2fd321d9c15693ee71876.zip
Special case in the uri interpolator which allows embedding host with the port included
Diffstat (limited to 'core/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala')
-rw-r--r--core/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala b/core/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala
index 4f0c66f..e35a9d6 100644
--- a/core/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala
+++ b/core/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala
@@ -61,7 +61,9 @@ class UriInterpolatorTests extends FunSuite with Matchers {
(uri"http://example.com:${8080}", s"http://example.com:8080"),
(uri"http://example.com:${8080}/x", s"http://example.com:8080/x"),
(uri"http://example.com:${Some(8080)}/x", s"http://example.com:8080/x"),
- (uri"http://example.com:$None/x", s"http://example.com/x")
+ (uri"http://example.com:$None/x", s"http://example.com/x"),
+ (uri"http://${"example.com:8080"}", s"http://example.com:8080"),
+ (uri"http://${"example.com:8080"}:$None", s"http://example.com:8080")
),
"path" -> List(
(uri"http://example.com/$v1", s"http://example.com/$v1"),