summaryrefslogtreecommitdiff
path: root/src/Network
diff options
context:
space:
mode:
Diffstat (limited to 'src/Network')
-rw-r--r--src/Network/BitTorrent/Tracker/Message.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Network/BitTorrent/Tracker/Message.hs b/src/Network/BitTorrent/Tracker/Message.hs
index 943c3af5..fe7686cb 100644
--- a/src/Network/BitTorrent/Tracker/Message.hs
+++ b/src/Network/BitTorrent/Tracker/Message.hs
@@ -47,6 +47,7 @@ module Network.BitTorrent.Tracker.Message
47 , defaultNumWant 47 , defaultNumWant
48 , defaultMaxNumWant 48 , defaultMaxNumWant
49 , defaultReannounceInterval 49 , defaultReannounceInterval
50 , announceType
50 , parseFailureStatus 51 , parseFailureStatus
51 52
52 -- * Scrape 53 -- * Scrape
@@ -571,6 +572,10 @@ parseFailureMessage e = BS.concat $ case e of
571 Missing p -> ["Missing parameter: ", paramName p] 572 Missing p -> ["Missing parameter: ", paramName p]
572 Invalid p v -> ["Invalid parameter: ", paramName p, " = ", v] 573 Invalid p v -> ["Invalid parameter: ", paramName p, " = ", v]
573 574
575-- | HTTP response /content type/.
576announceType :: ByteString
577announceType = "text/plain"
578
574-- | Get HTTP response status from a announce params parse failure. 579-- | Get HTTP response status from a announce params parse failure.
575-- 580--
576-- For more info see: 581-- For more info see: