From 20bbf25fa1289235d8ead0362cba5b91232119f7 Mon Sep 17 00:00:00 2001 From: Simon Date: Fri, 21 Sep 2018 13:46:29 +0200 Subject: [PATCH] HTTP removed compat_stdout And we're 0.7 only by now... Hope the compat_stdout function didn't do any more tricks besides giving back stdout ;) --- src/HTTP.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/HTTP.jl b/src/HTTP.jl index 8d10c35..3b40ad0 100644 --- a/src/HTTP.jl +++ b/src/HTTP.jl @@ -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,