fup: allow PUT without filename
This commit is contained in:
parent
48be007f79
commit
ccb7d81f1a
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ func (a *Application) Handler() http.Handler {
|
|||
r.HandleFunc("/", renderTemplate(a.indexTmpl))
|
||||
r.HandleFunc("/paste", renderTemplate(a.pasteTmpl))
|
||||
r.HandleFunc("/raw/{filename}", a.rawDownload)
|
||||
r.HandleFunc("/upload", a.upload).Methods("POST")
|
||||
r.HandleFunc("/upload", a.upload).Methods("POST", "PUT")
|
||||
r.HandleFunc("/upload/{filename}", a.upload).Methods("PUT")
|
||||
r.HandleFunc("/{filename}", a.view)
|
||||
|
||||
|
|
Loading…
Reference in a new issue