Skip to content

Commit

Permalink
Update to ponylang/HTTP 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanTAllen committed Jan 21, 2024
1 parent bf0d3c5 commit 0753b7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/http_handlers.pony
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class val HTTPGet
_notify = notify

fun apply(url_string: String, hf: HandlerFactory val) =>
let client = HTTPClient(TCPConnectAuth(_auth) where keepalive_timeout_secs = 10)
let client = HTTPClient(TCPConnectAuth(_auth), hf, where keepalive_timeout_secs = 10)
let url =
try
URL.valid(url_string)?
Expand All @@ -26,7 +26,7 @@ class val HTTPGet
let req = Payload.request("GET", url)
req("User-Agent") = "ponyup"
try
client(consume req, hf)?
client(consume req)?
else
_notify.log(Err, "server unreachable, please try again later")
end
Expand Down
2 changes: 1 addition & 1 deletion corral.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
{
"locator": "github.com/ponylang/http.git",
"version": "0.5.4"
"version": "0.6.0"
},
{
"locator": "github.com/ponylang/json.git",
Expand Down

0 comments on commit 0753b7b

Please sign in to comment.