Skip to content

Commit 5228c5f

Browse files
committed
MIMEHeader values are []string, not string
1 parent 6d7f1a0 commit 5228c5f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

request.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,9 @@ func (r *Request) parseParams() (err os.Error) {
216216
//read the data
217217
data, _ := ioutil.ReadAll(part)
218218
//check for the 'filename' param
219-
v, ok := part.Header["Content-Disposition"]
220-
if !ok {
221-
continue
219+
v := part.Header.Get("Content-Disposition")
220+
if len(v)==0 {
221+
continue
222222
}
223223
name := part.FormName()
224224
d, params := mime.ParseMediaType(v)

0 commit comments

Comments
 (0)