Remove dependency on pat for id extraction

This commit is contained in:
Max Brosnahan 2015-12-08 09:10:49 +13:00
parent 218cdfd022
commit f27c9fd439
1 changed files with 1 additions and 1 deletions

View File

@ -254,7 +254,7 @@ func (handler *UnroutedHandler) PostFile(w http.ResponseWriter, r *http.Request)
// HeadFile returns the length and offset for the HEAD request
func (handler *UnroutedHandler) HeadFile(w http.ResponseWriter, r *http.Request) {
id := r.URL.Query().Get(":id")
id := extractIDFromPath(r.URL.Path)
info, err := handler.dataStore.GetInfo(id)
if err != nil {
handler.sendError(w, r, err)