pkg/bencode,server/http: more general interfaces

Fixes #156.
This commit is contained in:
Jimmy Zelinskie
2016-04-03 23:05:00 -04:00
parent 07d79b2d56
commit 8d1244d1c2
2 changed files with 5 additions and 5 deletions

View File

@@ -113,7 +113,7 @@ func unmarshal(r *bufio.Reader) (interface{}, error) {
}
}
func readTerminator(r *bufio.Reader, term byte) (bool, error) {
func readTerminator(r io.ByteScanner, term byte) (bool, error) {
tok, err := r.ReadByte()
if err != nil {
return false, err