From fc62bf67b23793b3766f527de5ffac73e78d2d18 Mon Sep 17 00:00:00 2001 From: adamw Date: Mon, 24 Jul 2017 17:11:02 +0200 Subject: Additional empty-body tests --- tests/src/test/scala/com/softwaremill/sttp/BasicTests.scala | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/src/test/scala/com/softwaremill') diff --git a/tests/src/test/scala/com/softwaremill/sttp/BasicTests.scala b/tests/src/test/scala/com/softwaremill/sttp/BasicTests.scala index 00d9e6f..e5a73f7 100644 --- a/tests/src/test/scala/com/softwaremill/sttp/BasicTests.scala +++ b/tests/src/test/scala/com/softwaremill/sttp/BasicTests.scala @@ -262,6 +262,11 @@ class BasicTests .force() response.body should be("a==/b c:=/d") } + + name should "post without a body" in { + val response = postEcho.send().force() + response.body should be("POST /echo") + } } def headerTests(): Unit = { -- cgit v1.2.3