mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-14 07:26:47 +00:00
2
.github/CONTRIBUTING.md
vendored
2
.github/CONTRIBUTING.md
vendored
@@ -21,7 +21,7 @@ Block style example:
|
||||
func SendHTTPRequest(method, path string, headers map[string]string, body io.Reader) (string, error) {
|
||||
result := strings.ToUpper(method)
|
||||
|
||||
if result != "POST" && result != "GET" && result != "DELETE" {
|
||||
if result != http.MethodPost && result != http.MethodGet && result != http.MethodDelete {
|
||||
return "", errors.New("Invalid HTTP method specified.")
|
||||
}
|
||||
|
||||
|
||||
2
.github/CONTRIBUTING_TEMPLATE.md
vendored
2
.github/CONTRIBUTING_TEMPLATE.md
vendored
@@ -21,7 +21,7 @@ Block style example:
|
||||
func SendHTTPRequest(method, path string, headers map[string]string, body io.Reader) (string, error) {
|
||||
result := strings.ToUpper(method)
|
||||
|
||||
if result != "POST" && result != "GET" && result != "DELETE" {
|
||||
if result != http.MethodPost && result != http.MethodGet && result != http.MethodDelete {
|
||||
return "", errors.New("Invalid HTTP method specified.")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user