diff --git a/Project.toml b/Project.toml index 0012283..57831e7 100644 --- a/Project.toml +++ b/Project.toml @@ -13,7 +13,7 @@ SodiumSeal = "2133526b-2bfb-4018-ac12-889fb3908a75" URIs = "5c2747f8-b7ea-4ff2-ba2e-563bfd36b1d4" [compat] -HTTP = "0.9" +HTTP = "0.9, 1" URIs = "1.1" JSON = "0.19, 0.20, 0.21" MbedTLS = "0.6, 0.7, 1" diff --git a/src/activity/events.jl b/src/activity/events.jl index b9c0027..defbeb9 100644 --- a/src/activity/events.jl +++ b/src/activity/events.jl @@ -113,7 +113,7 @@ function handle_event_request(request, handle; end function Base.run(listener, args...; host = nothing, port = nothing, kwargs...) - if host != nothing || port != nothing + if host !== nothing || port !== nothing Base.depwarn("The `host` and `port` keywords are deprecated, use `run(listener, host, port, args...; kwargs...)`", :run) end run(listener, host, port, args...; kwargs...) @@ -127,7 +127,7 @@ function Base.run(listener::EventListener, host::HTTP.IPAddr, port::Int, args... run(listener, sock, host, port, args...; kwargs...) end -function Base.run(listener::EventListener, sock::Sockets.TCPServer, host::HTTP.IPAddr, port::Int, args...; kwargs...) +function Base.run(listener::EventListener, sock::Sockets.TCPServer, host, port, args...; kwargs...) HTTP.serve(listener.handle_request, host, port; server=sock, kwargs...) end @@ -193,7 +193,7 @@ function handle_comment(handle, event::WebhookEvent, auth::Authorization, trigger_match = match(trigger, body_container["body"]) - if trigger_match == nothing + if trigger_match === nothing return HTTP.Response(204, "trigger match not found") end