Browse Source

add version number

luamas 2 years ago
parent
commit
6f4425b892
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      jrebel/jrebel.go

+ 1
- 1
jrebel/jrebel.go View File

@@ -69,7 +69,7 @@ func NewDefaultLeaseBaseDto() JrebelBaseDto {
69 69
 }
70 70
 
71 71
 func Jrebel(w http.ResponseWriter, r *http.Request, userName string) {
72
-	if r.Method == "DELETE" {
72
+	if r.Method == http.MethodDelete {
73 73
 		jsons, _ := json.Marshal(JrebelSimpleResponse{
74 74
 			StatusCode:         "SUCCESS",
75 75
 			JrebelBaseResponse: NewDefaultBaseJsonResponse(),

Loading…
Cancel
Save