do not pass http.ResponseWriter as pointer to EnableCors (#1440)
This commit is contained in:
@@ -34,7 +34,7 @@ type MetadataPage struct {
|
||||
|
||||
// IndexHandler handles the default index route.
|
||||
func IndexHandler(w http.ResponseWriter, r *http.Request) {
|
||||
middleware.EnableCors(&w)
|
||||
middleware.EnableCors(w)
|
||||
isIndexRequest := r.URL.Path == "/" || filepath.Base(r.URL.Path) == "index.html" || filepath.Base(r.URL.Path) == ""
|
||||
|
||||
// For search engine bots and social scrapers return a special
|
||||
|
||||
Reference in New Issue
Block a user