Skip to content

Commit

Permalink
HTTP removed compat_stdout
Browse files Browse the repository at this point in the history
And we're 0.7 only by now... Hope the compat_stdout function didn't do any more tricks besides giving back stdout ;)
  • Loading branch information
SimonDanisch authored and hustf committed Sep 25, 2018
1 parent 6d553d7 commit 20bbf25
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/HTTP.jl
Original file line number Diff line number Diff line change
Expand Up @@ -254,17 +254,17 @@ mutable struct ServerWS{T <: HTTP.Servers.Scheme, H <: HTTP.Handler, W <: Websoc
out::Channel{Any}
options::HTTP.ServerOptions

ServerWS{T, H, W}(handler::H, wshandler::W, logger::IO = HTTP.compat_stdout(), ch=Channel(1), ch2=Channel(2),
ServerWS{T, H, W}(handler::H, wshandler::W, logger::IO = stdout, ch=Channel(1), ch2=Channel(2),
options=HTTP.ServerOptions()) where {T, H, W} =
new{T, H, W}(handler, wshandler, logger, ch, ch2, options)
end

ServerWS(h::Function, w::Function, l::IO=HTTP.compat_stdout();
ServerWS(h::Function, w::Function, l::IO=stdout;
cert::String="", key::String="", args...) = ServerWS(HTTP.HandlerFunction(h), WebsocketHandler(w), l;
cert=cert, key=key, ratelimit = 1//0, args...)
function ServerWS(handler::H,
wshandler::W,
logger::IO = HTTP.compat_stdout();
logger::IO = stdout;
cert::String = "",
key::String = "",
ratelimit = 1//0,
Expand Down

0 comments on commit 20bbf25

Please sign in to comment.