Skip to content

Commit

Permalink
Merge pull request #92 from treeform/guzba
Browse files Browse the repository at this point in the history
5.0.1
  • Loading branch information
treeform authored Dec 18, 2022
2 parents 12dc3ef + afe2a57 commit 44d93ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion puppy.nimble
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "2.0.0"
version = "2.0.1"
author = "Andre von Houck"
description = "Puppy fetches resources via HTTP and HTTPS."
license = "MIT"
Expand Down
6 changes: 3 additions & 3 deletions src/puppy.nim
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ proc post*(
timeout: float32 = 60
): Response =
let request = newRequest(url, "POST", headers, timeout)
request.body = move body
request.body = body
fetch(request)

proc put*(
Expand All @@ -69,7 +69,7 @@ proc put*(
timeout: float32 = 60
): Response =
let request = newRequest(url, "PUT", headers, timeout)
request.body = move body
request.body = body
fetch(request)

proc patch*(
Expand All @@ -79,7 +79,7 @@ proc patch*(
timeout: float32 = 60
): Response =
let request = newRequest(url, "PATCH", headers, timeout)
request.body = move body
request.body = body
fetch(request)

proc delete*(
Expand Down

0 comments on commit 44d93ad

Please sign in to comment.