Permalink
Browse files

Update for weekly 2011-09-01

  • Loading branch information...
1 parent 0d05faa commit 05b6a777f017df37c22532121732a5f27bf162ac @hoisie committed Oct 30, 2011
Showing with 8 additions and 2 deletions.
  1. +8 −2 request.go
View
10 request.go
@@ -185,7 +185,10 @@ func (r *Request) parseParams() (err os.Error) {
}
r.ParamData = b
case "multipart/form-data":
- _, params := mime.ParseMediaType(ct)
+ _, params, err := mime.ParseMediaType(ct)
+ if err != nil {
+ return err
+ }
boundary, ok := params["boundary"]
if !ok {
return os.NewError("Missing Boundary")
@@ -211,7 +214,10 @@ func (r *Request) parseParams() (err os.Error) {
continue
}
name := part.FormName()
- d, params := mime.ParseMediaType(v)
+ d, params, err := mime.ParseMediaType(v)
+ if err != nil {
+ return err
+ }
if d != "form-data" {
continue
}

0 comments on commit 05b6a77

Please sign in to comment.