protocol version fallback on 404
and prettified errors
This commit is contained in:
parent
4e15b786ca
commit
b7454f1eeb
4 changed files with 48 additions and 15 deletions
|
@ -63,6 +63,15 @@ defaultProtocolVersion = ProtocolVersion 0
|
|||
maxProtocolVersion :: ProtocolVersion
|
||||
maxProtocolVersion = ProtocolVersion 3
|
||||
|
||||
-- In order from newest to oldest.
|
||||
allProtocolVersions :: [ProtocolVersion]
|
||||
allProtocolVersions =
|
||||
[ ProtocolVersion 3
|
||||
, ProtocolVersion 2
|
||||
, ProtocolVersion 1
|
||||
, ProtocolVersion 0
|
||||
]
|
||||
|
||||
newtype ProtoAssociatedFile = ProtoAssociatedFile AssociatedFile
|
||||
deriving (Show)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue