Full urls for Location header
This commit is contained in:
parent
0af9ef3827
commit
66d28e97bb
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue