summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index 9af89eb..2b531a9 100644
--- a/main.go
+++ b/main.go
@@ -110,7 +110,7 @@ func (s *Server) randomFile(ext string) (*os.File, string, error) {
func (s *Server) createPosting(rd io.Reader, mimeType string) (string, error) {
var ext string
- if mimeType == "" || mimeType == "auto" {
+ if mimeType == "" {
mimeType, ext, rd, _ = detectMimetype(rd)
} else {
mime := mimetype.Lookup(mimeType)
@@ -215,7 +215,7 @@ func (s *Server) post(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusFound)
} else {
if mimeType == "application/x-www-form-urlencoded" {
- mimeType = "auto"
+ mimeType = ""
}
name, err := s.createPosting(r.Body, mimeType)
if err != nil {