summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 89834dd..2c71593 100644
--- a/main.go
+++ b/main.go
@@ -244,7 +244,7 @@ func (s *Server) indexPost(w http.ResponseWriter, r *http.Request) {
var rd io.Reader
mimeType := r.Header.Get("content-type")
ext := ""
- if mimeType == "" {
+ if mimeType == "" || mimeType == "application/x-www-form-urlencoded" {
mimeType, ext, rd, _ = detectMimetype(r.Body)
} else {
mime := mimetype.Lookup(mimeType)