()
| 118 | } |
| 119 | |
| 120 | func (req *Request) parseForm() error { |
| 121 | if strings.HasPrefix(req.QueryHeader(HeaderContentType), MIMEMultipartForm) { |
| 122 | if err := req.ParseMultipartForm(defaultMemory); err != nil { |
| 123 | return err |
| 124 | } |
| 125 | } else { |
| 126 | if err := req.ParseForm(); err != nil { |
| 127 | return err |
| 128 | } |
| 129 | } |
| 130 | return nil |
| 131 | } |
| 132 | |
| 133 | // ContentType get ContentType |
| 134 | func (req *Request) ContentType() string { |
no test coverage detected