diff --git a/server/http_handler.go b/server/http_handler.go index b6a8b68791b0e..f0ca7856b33e6 100644 --- a/server/http_handler.go +++ b/server/http_handler.go @@ -844,8 +844,8 @@ func (h tableHandler) addScatterSchedule(startKey, endKey []byte, name string) e } input := map[string]string{ "name": "scatter-range", - "start_key": string(startKey), - "end_key": string(endKey), + "start_key": url.QueryEscape(string(startKey)), + "end_key": url.QueryEscape(string(endKey)), "range_name": name, } v, err := json.Marshal(input)