From 460c1c1238b95558bac69dceec97366af971ac90 Mon Sep 17 00:00:00 2001 From: Sam O'Connor Date: Mon, 1 Oct 2018 17:51:29 +1000 Subject: [PATCH] add LazyHTTP.Header support to IODebug.jl --- src/IODebug.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/IODebug.jl b/src/IODebug.jl index 93a9f979b..12bed7dbf 100644 --- a/src/IODebug.jl +++ b/src/IODebug.jl @@ -1,6 +1,7 @@ const live_mode = true import ..debug_header +using ..LazyHTTP @static if live_mode @@ -33,6 +34,10 @@ Base.write(iod::IODebug, a...) = (logwrite(iod, :write, join(a)); write(iod.io, a...)) +Base.write(iod::IODebug, a::LazyHTTP.Header{IOBuffer}) where T = + (logwrite(iod, :write, sprint(write, a)); + write(iod.io, a)) + Base.write(iod::IODebug, a::Array) = (logwrite(iod, :write, join(a)); write(iod.io, a))