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.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/http/request.go b/src/pkg/http/request.go
index 5356f5525..a0207ea71 100644
--- a/src/pkg/http/request.go
+++ b/src/pkg/http/request.go
@@ -151,8 +151,8 @@ func (req *Request) write(w io.Writer) os.Error {
io.WriteString(w, "\r\n");
if req.Body != nil {
- nCopied, err := io.Copy(req.Body, w);
- if err != nil && err != io.ErrEOF {
+ _, err := io.Copy(req.Body, w);
+ if err != nil {
return err;
}
}