Full urls for Location header

This commit is contained in:
Felix Geisendörfer 2013-04-07 17:20:38 +02:00
parent 0af9ef3827
commit 66d28e97bb
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ func postFiles(w http.ResponseWriter, r *http.Request) {
}
w.Header().Set("Location", "/files/"+id)
w.Header().Set("Location", "http://"+r.Host+"/files/"+id)
setFileHeaders(w, id)
w.WriteHeader(http.StatusCreated)
}