Skip to content

Commit 77904eb

Browse files
authored
Merge pull request #196 from JuliaWeb/jq/http1
Support HTTP.jl 1.0
2 parents 9a52c7b + 48a33e7 commit 77904eb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ SodiumSeal = "2133526b-2bfb-4018-ac12-889fb3908a75"
1313
URIs = "5c2747f8-b7ea-4ff2-ba2e-563bfd36b1d4"
1414

1515
[compat]
16-
HTTP = "0.9"
16+
HTTP = "0.9, 1"
1717
URIs = "1.1"
1818
JSON = "0.19, 0.20, 0.21"
1919
MbedTLS = "0.6, 0.7, 1"

src/activity/events.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ function handle_event_request(request, handle;
113113
end
114114

115115
function Base.run(listener, args...; host = nothing, port = nothing, kwargs...)
116-
if host != nothing || port != nothing
116+
if host !== nothing || port !== nothing
117117
Base.depwarn("The `host` and `port` keywords are deprecated, use `run(listener, host, port, args...; kwargs...)`", :run)
118118
end
119119
run(listener, host, port, args...; kwargs...)
@@ -127,7 +127,7 @@ function Base.run(listener::EventListener, host::HTTP.IPAddr, port::Int, args...
127127
run(listener, sock, host, port, args...; kwargs...)
128128
end
129129

130-
function Base.run(listener::EventListener, sock::Sockets.TCPServer, host::HTTP.IPAddr, port::Int, args...; kwargs...)
130+
function Base.run(listener::EventListener, sock::Sockets.TCPServer, host, port, args...; kwargs...)
131131
HTTP.serve(listener.handle_request, host, port; server=sock, kwargs...)
132132
end
133133

@@ -193,7 +193,7 @@ function handle_comment(handle, event::WebhookEvent, auth::Authorization,
193193

194194
trigger_match = match(trigger, body_container["body"])
195195

196-
if trigger_match == nothing
196+
if trigger_match === nothing
197197
return HTTP.Response(204, "trigger match not found")
198198
end
199199

0 commit comments

Comments
 (0)