mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-04 16:40:21 +00:00
🐛 默认请求方式
This commit is contained in:
1 parent
b4410e7cd7
commit
96c25f6fba
3 files changed
+6
-9
No files matched your search
@@ -42,17 +42,14 @@ func (n *Notification) reqURL(message string) string {
|
||||
}
|
||||
|
||||
func (n *Notification) reqMethod() string {
|
||||
switch n.RequestMethod {
|
||||
case NotificationRequestMethodGET:
|
||||
return http.MethodGet
|
||||
case NotificationRequestMethodPOST:
|
||||
return http.MethodGet
|
||||
if n.RequestMethod == NotificationRequestMethodPOST {
|
||||
return http.MethodPost
|
||||
}
|
||||
return ""
|
||||
return http.MethodGet
|
||||
}
|
||||
|
||||
func (n *Notification) reqBody(message string) (string, error) {
|
||||
if n.RequestMethod == NotificationRequestMethodGET {
|
||||
if n.RequestMethod == NotificationRequestMethodGET || message == "" {
|
||||
return "", nil
|
||||
}
|
||||
switch n.RequestType {
|
||||
|
||||
Reference in new issue
Block a user