summaryrefslogtreecommitdiff
path: root/libgo/go/http/chunked.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/http/chunked.go')
-rw-r--r--libgo/go/http/chunked.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/libgo/go/http/chunked.go b/libgo/go/http/chunked.go
index eff9ae288ea..157e1c46c3b 100644
--- a/libgo/go/http/chunked.go
+++ b/libgo/go/http/chunked.go
@@ -8,7 +8,6 @@ import (
"bufio"
"io"
"log"
- "os"
"strconv"
)
@@ -37,7 +36,7 @@ type chunkedWriter struct {
// Write the contents of data as one chunk to Wire.
// NOTE: Note that the corresponding chunk-writing procedure in Conn.Write has
// a bug since it does not check for success of io.WriteString
-func (cw *chunkedWriter) Write(data []byte) (n int, err os.Error) {
+func (cw *chunkedWriter) Write(data []byte) (n int, err error) {
// Don't send 0-length data. It looks like EOF for chunked encoding.
if len(data) == 0 {
@@ -61,7 +60,7 @@ func (cw *chunkedWriter) Write(data []byte) (n int, err os.Error) {
return
}
-func (cw *chunkedWriter) Close() os.Error {
+func (cw *chunkedWriter) Close() error {
_, err := io.WriteString(cw.Wire, "0\r\n")
return err
}