Skip to content

Commit

Permalink
Merge pull request #23 from nsajko/t
Browse files Browse the repository at this point in the history
remove unbound type parameter
  • Loading branch information
onetonfoot authored Sep 20, 2022
2 parents 158d2f7 + 304d78c commit f7cf349
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/http.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ include("dasherize.jl")

# https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#information_responses
HTTP.statustext(::Val{T}) where T = HTTP.statustext(Int(T))
HTTP.statustext(::Val{:default}) where T = HTTP.statustext(200)
HTTP.statustext(::Val{:default}) = HTTP.statustext(200)

abstract type HttpParameter end

Expand Down Expand Up @@ -155,4 +155,4 @@ struct Status{T} <: HttpParameter
val::Union{Int, Symbol}
end

Status(x) = Status{x}(x)
Status(x) = Status{x}(x)

0 comments on commit f7cf349

Please sign in to comment.