diff options
Diffstat (limited to 'src/pkg/http/request.go')
| -rw-r--r-- | src/pkg/http/request.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/http/request.go b/src/pkg/http/request.go index dabd39d20..e276deeff 100644 --- a/src/pkg/http/request.go +++ b/src/pkg/http/request.go @@ -204,7 +204,7 @@ func (req *Request) write(w io.Writer) os.Error { // The returned bytes are a pointer into storage in // the bufio, so they are only valid until the next bufio read. func readLineBytes(b *bufio.Reader) (p []byte, err os.Error) { - if p, err = b.ReadLineSlice('\n'); err != nil { + if p, err = b.ReadSlice('\n'); err != nil { // We always know when EOF is coming. // If the caller asked for a line, there should be a line. if err == os.EOF { |
