Change getting callback query

This commit is contained in:
cmfatih
2015-08-17 22:22:00 -04:00
parent 3dc7bc2e70
commit e86e3db2e0

View File

@@ -345,7 +345,7 @@ func updateUsage(v *Varz) {
// ResponseHandler handles responses for monitoring routes
func ResponseHandler(w http.ResponseWriter, r *http.Request, data []byte) {
// Get callback from request
callback := r.FormValue("callback")
callback := r.URL.Query().Get("callback")
// If callback is not empty then
if callback != "" {
// Response for JSONP