Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
samoconnor committed Feb 18, 2018
1 parent 2cea2f7 commit b84e663
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Messages.jl
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export Message, Request, Response, HeaderSizeError,
readchunksize,
writeheaders, writestartline,
bodylength, unknown_length,
load, payload
payload

import ..HTTP

Expand Down Expand Up @@ -377,7 +377,7 @@ end
# HTTP payload body

#Like https://github.com/JuliaIO/FileIO.jl/blob/v0.6.1/src/FileIO.jl#L19 ?
load(m::Message) = payload(m, String)
@deprecate load(m::Message) payload(m, String)

function payload(m::Message)::Vector{UInt8}
enc = lowercase(first(split(header(m, "Transfer-Encoding"), ", ")))
Expand Down

0 comments on commit b84e663

Please sign in to comment.