Use http package consts for http methods
This commit replaces occurences of http method strings with the
corresponding consts from the http package.
*Note* UPDATE is not strictly speaking a valid method and as such isn't
part of the http package (should be a PUT or PATCH?)
Signed-off-by:
John McCabe <john@johnmccabe.net>
Showing
- gateway/handlers/cors.go 1 addition, 1 deletiongateway/handlers/cors.go
- gateway/server.go 10 additions, 10 deletionsgateway/server.go
- gateway/tests/cors_test.go 2 additions, 2 deletionsgateway/tests/cors_test.go
- watchdog/main.go 5 additions, 5 deletionswatchdog/main.go
- watchdog/requesthandler_test.go 12 additions, 12 deletionswatchdog/requesthandler_test.go
Loading
Please register or sign in to comment