This commit is contained in:
Felix Geisendörfer 2013-03-17 16:23:40 +01:00
parent 6e9a8c2b5e
commit d4d698d6da
1 changed files with 2 additions and 2 deletions

View File

@ -22,11 +22,11 @@ func main() {
} }
func route(w http.ResponseWriter, r *http.Request) { func route(w http.ResponseWriter, r *http.Request) {
log.Printf("%s %s", r.Method, r.URL.RequestURI()) log.Printf("request: %s %s", r.Method, r.URL.RequestURI())
w.Header().Set("Server", "tusd") w.Header().Set("Server", "tusd")
if r.Method == "request: POST" && r.URL.Path == "/files" { if r.Method == "POST" && r.URL.Path == "/files" {
createFile(w, r) createFile(w, r)
} else { } else {
reply(w, http.StatusNotFound, "No matching route") reply(w, http.StatusNotFound, "No matching route")