Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to ponylang/http 0.6.0 #286

Merged
merged 1 commit into from
Jan 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading