Basic auth: Fix #201 - broken uploads
This commit is contained in:
parent
7ca3331044
commit
773eb877bd
|
@ -207,9 +207,7 @@ func setup() *web.Mux {
|
||||||
o: options,
|
o: options,
|
||||||
}
|
}
|
||||||
mux.Head(Config.sitePath+"auth", authHandler)
|
mux.Head(Config.sitePath+"auth", authHandler)
|
||||||
mux.Head(Config.sitePath+"auth/", authHandler)
|
|
||||||
mux.Get(Config.sitePath+"auth", authHandler)
|
mux.Get(Config.sitePath+"auth", authHandler)
|
||||||
mux.Get(Config.sitePath+"auth/", authHandler)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mux.Post(Config.sitePath+"upload", uploadPostHandler)
|
mux.Post(Config.sitePath+"upload", uploadPostHandler)
|
||||||
|
|
|
@ -20,7 +20,7 @@ Dropzone.options.dropzone = {
|
||||||
dropzone.cancelUpload(file)
|
dropzone.cancelUpload(file)
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
xhr.open("HEAD", "auth/", true);
|
xhr.open("HEAD", "/auth", true);
|
||||||
xhr.send()
|
xhr.send()
|
||||||
}
|
}
|
||||||
var upload = document.createElement("div");
|
var upload = document.createElement("div");
|
||||||
|
|
Loading…
Reference in New Issue