From b64de6bc0e8ea714865df8e849821eafbccd0d11 Mon Sep 17 00:00:00 2001 From: Sean T Allen Date: Sun, 21 Jan 2024 10:16:06 -0500 Subject: [PATCH] Update to ponylang/HTTP 0.6.0 (#286) --- cmd/http_handlers.pony | 4 ++-- corral.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/http_handlers.pony b/cmd/http_handlers.pony index 66dab46..a29cc68 100644 --- a/cmd/http_handlers.pony +++ b/cmd/http_handlers.pony @@ -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)? @@ -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 diff --git a/corral.json b/corral.json index cd362d6..07d9d6a 100644 --- a/corral.json +++ b/corral.json @@ -10,7 +10,7 @@ }, { "locator": "github.com/ponylang/http.git", - "version": "0.5.4" + "version": "0.6.0" }, { "locator": "github.com/ponylang/json.git",