Skip to content

Commit 14b5f20

Browse files
author
Ryan Patrick Kyle
committed
🙈 fix body
1 parent bd96e10 commit 14b5f20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/handlers.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ function process_assets(app::DashApp, path, compress::Bool)
9393
end
9494

9595
function make_handler(app::DashApp; debug::Bool = false)
96-
body::Union{Nothing, String} = nothing
9796
index_string::String = index_page(app, debug = debug)
9897

9998
return function (req::HTTP.Request)
99+
body::Union{Nothing, String} = nothing
100100
uri = HTTP.URI(req.target)
101101

102102
# verify that the client accepts compression
@@ -136,7 +136,7 @@ function make_handler(app::DashApp; debug::Bool = false)
136136
end
137137
end
138138
end
139-
if isnothing(body)
139+
if !isnothing(body)
140140
return make_response(200, headers, body, with_gzip)
141141
end
142142
return HTTP.Response(404)

0 commit comments

Comments
 (0)