2021-10-01 13:59:55 +00:00
|
|
|
//go:build !ent
|
2021-02-08 18:53:06 +00:00
|
|
|
// +build !ent
|
|
|
|
|
|
|
|
package agent
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
)
|
|
|
|
|
|
|
|
func (s *HTTPServer) LicenseRequest(resp http.ResponseWriter, req *http.Request) (interface{}, error) {
|
|
|
|
switch req.Method {
|
|
|
|
case "GET":
|
|
|
|
resp.WriteHeader(http.StatusNoContent)
|
|
|
|
return nil, nil
|
|
|
|
case "PUT":
|
|
|
|
return nil, CodedError(501, ErrEntOnly)
|
|
|
|
default:
|
|
|
|
return nil, CodedError(405, ErrInvalidMethod)
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|