Skip to content

Commit

Permalink
- Fixes for 20110307 release
Browse files Browse the repository at this point in the history
- Use net/textproto/MIMEHeader in request.go
- Type assert http.ResponseWriter into hijacker to access Hijack()
  • Loading branch information
Graham Anderson committed Mar 9, 2011
1 parent 8979b7a commit 22e80d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions request.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ func (r *Request) parseParams() (err os.Error) {
//read the data
data, _ := ioutil.ReadAll(part)
//check for the 'filename' param
v, ok := part.Header["Content-Disposition"]
if !ok {
v := part.Header.Get("Content-Disposition")
if v == "" {
continue
}
name := part.FormName()
Expand Down
2 changes: 1 addition & 1 deletion web.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ func (c *httpConn) Write(content []byte) (n int, err os.Error) {
}

func (c *httpConn) Close() {
rwc, buf, _ := c.conn.Hijack()
rwc, buf, _ := c.conn.(http.Hijacker).Hijack()
if buf != nil {
buf.Flush()
}
Expand Down

0 comments on commit 22e80d2

Please sign in to comment.