summaryrefslogtreecommitdiff
path: root/src/pkg/http/request.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/http/request.go')
-rw-r--r--src/pkg/http/request.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pkg/http/request.go b/src/pkg/http/request.go
index e276deeff..2467222bb 100644
--- a/src/pkg/http/request.go
+++ b/src/pkg/http/request.go
@@ -431,8 +431,7 @@ func (cr *chunkedReader) Read(b []uint8) (n int, err os.Error) {
if cr.n == 0 && cr.err == nil {
// end of chunk (CRLF)
b := make([]byte, 2);
- var nb int;
- if nb, cr.err = io.ReadFull(cr.r, b); cr.err == nil {
+ if _, cr.err = io.ReadFull(cr.r, b); cr.err == nil {
if b[0] != '\r' || b[1] != '\n' {
cr.err = os.NewError("malformed chunked encoding");
}