summaryrefslogtreecommitdiff
path: root/src/pkg/http/request.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-08-27 11:20:15 -0700
committerRuss Cox <rsc@golang.org>2009-08-27 11:20:15 -0700
commite0347fcfd827558d7b7a15995d61a17cb080b11d (patch)
tree4630cb5e26c85e719c02e5a360c3eaa04f42748f /src/pkg/http/request.go
parent43f160a74b60cb31146233bca5bd967539799aea (diff)
downloadgolang-e0347fcfd827558d7b7a15995d61a17cb080b11d.tar.gz
remove Line in bufio.ReadLine(Bytes|Slice|String)
also drop bool arg from ReadString R=r DELTA=45 (13 added, 1 deleted, 31 changed) OCL=33923 CL=33960
Diffstat (limited to 'src/pkg/http/request.go')
-rw-r--r--src/pkg/http/request.go2
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 {