mirror of
https://github.com/sot-tech/mochi.git
synced 2026-05-10 22:29:08 -07:00
http: fixed bencoding, compact, added log
This commit is contained in:
@@ -112,7 +112,10 @@ func (s *httpServer) serveAnnounce(w http.ResponseWriter, r *http.Request, p htt
|
||||
return
|
||||
}
|
||||
|
||||
writeAnnounceResponse(w, resp)
|
||||
err = writeAnnounceResponse(w, resp)
|
||||
if err != nil {
|
||||
log.Println("error serializing response", err)
|
||||
}
|
||||
}
|
||||
|
||||
func (s *httpServer) serveScrape(w http.ResponseWriter, r *http.Request, p httprouter.Params) {
|
||||
|
||||
Reference in New Issue
Block a user