Skip to content

Commit

Permalink
Merge pull request JuliaWeb#28 from pabloferz/patch-1
Browse files Browse the repository at this point in the history
Add `@compat` in some places
  • Loading branch information
Keno committed Aug 31, 2015
2 parents 1b86aaa + 5d42691 commit b82756f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/HttpCommon.jl
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,14 @@ headers() = Dict{String,String}([
@compat typealias HttpData Union(Vector{UInt8}, String)
asbytes(r::ByteString) = r.data
asbytes(r::String) = asbytes(bytestring(r))
asbytes(r) = convert(Vector{UInt8}, r)
asbytes(r) = @compat convert(Vector{UInt8}, r)


type Request
method::String
resource::String
headers::Headers
data::Vector{UInt8}
data::@compat(Vector{UInt8})
uri::URI
end
Request() = Request("", "", Dict{String,String}(), @compat(Vector{UInt8}()), URI(""))
Expand Down Expand Up @@ -211,7 +211,7 @@ type Response
status::Int
headers::Headers
cookies::Cookies
data::Vector{UInt8}
data::@compat(Vector{UInt8})
finished::Bool
# The history of requests that generated the response. Can be greater than
# one if a redirect was involved.
Expand Down

0 comments on commit b82756f

Please sign in to comment.