do not pass http.ResponseWriter as pointer to EnableCors (#1440)
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
||||
|
||||
// GetStatus gets the status of the server.
|
||||
func GetStatus(w http.ResponseWriter, r *http.Request) {
|
||||
middleware.EnableCors(&w)
|
||||
middleware.EnableCors(w)
|
||||
|
||||
status := core.GetStatus()
|
||||
response := webStatusResponse{
|
||||
|
||||
Reference in New Issue
Block a user