mediaapi/routing: Remove OPTIONS handling from GET endpoint

This commit is contained in:
Robert Swain 2017-04-28 17:13:36 +02:00
parent 42a390f8fe
commit 10e843da58

View file

@ -36,12 +36,6 @@ type downloadRequestHandler struct {
func (handler downloadRequestHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
util.SetupRequestLogging(req)
if req.Method == "OPTIONS" {
util.SetCORSHeaders(w)
w.WriteHeader(200)
return
}
// Set common headers returned regardless of the outcome of the request
util.SetCORSHeaders(w)
w.Header().Set("Content-Type", "application/json")