]> Sergey Matveev's repositories - btrtrc.git/blobdiff - webtorrent/tracker_protocol.go
Align webtorrent tracker to BEP-3
[btrtrc.git] / webtorrent / tracker_protocol.go
index 167044a6315510e833634c0b9fcb1d93f95787f6..a63fe5a64d3cd470d81bf4a38ac05bad95ee2256 100644 (file)
@@ -12,7 +12,7 @@ type AnnounceRequest struct {
        Uploaded   int64   `json:"uploaded"`
        Downloaded int64   `json:"downloaded"`
        Left       int64   `json:"left"`
-       Event      string  `json:"event"`
+       Event      string  `json:"event,omitempty"`
        Action     string  `json:"action"`
        InfoHash   string  `json:"info_hash"`
        PeerID     string  `json:"peer_id"`