This commit is contained in:
parent
62972cc839
commit
038f2cce57
|
@ -18,6 +18,10 @@ import (
|
|||
)
|
||||
|
||||
func (s *HTTPServer) EventStream(resp http.ResponseWriter, req *http.Request) (interface{}, error) {
|
||||
if req.Method != http.MethodGet {
|
||||
return nil, CodedError(http.StatusMethodNotAllowed, ErrInvalidMethod)
|
||||
}
|
||||
|
||||
query := req.URL.Query()
|
||||
|
||||
indexStr := query.Get("index")
|
||||
|
|
Loading…
Reference in a new issue