Skip to content

Commit

Permalink
add LazyHTTP.Header support to IODebug.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
samoconnor committed Oct 1, 2018
1 parent 5603935 commit 460c1c1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/IODebug.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const live_mode = true

import ..debug_header
using ..LazyHTTP

@static if live_mode

Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit 460c1c1

Please sign in to comment.