Skip to content

Commit b5806f7

Browse files
committed
bugfix: Fix exception sent from example.com POST request
1 parent fedb55f commit b5806f7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/RequestPost.sc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
//> using toolkit default
22

33
import sttp.client4.quick.*
4+
import scala.util.Try
45

5-
val response = quickRequest
6+
val response = Try(quickRequest
67
.post(uri"https://example.com/")
78
.body("Lorem ipsum")
89
.send()
10+
)
911

1012
println(response)

0 commit comments

Comments
 (0)