Skip to content
This repository has been archived by the owner on May 17, 2019. It is now read-only.

Commit

Permalink
Don't reference Dates module for Julia .3
Browse files Browse the repository at this point in the history
  • Loading branch information
malmaud committed Aug 14, 2015
1 parent 64f8255 commit 7b21351
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Requests.jl
Expand Up @@ -558,7 +558,9 @@ end
const checkv = :(has_body && error("Multiple body options specified. Please only specify one"); has_body = true)

timeout_in_sec(::Void) = Inf
timeout_in_sec(t::Dates.TimePeriod) = convert(Float64, Dates.Second(t))
if VERSION > v"0.4-"
timeout_in_sec(t::Dates.TimePeriod) = convert(Float64, Dates.Second(t))
end
timeout_in_sec(t) = convert(Float64, t)

@eval function do_request(uri::URI, verb; headers = Dict{String, String}(),
Expand Down

0 comments on commit 7b21351

Please sign in to comment.