Skip to content

Commit 00bb120

Browse files
authored
Use POST http constant
1 parent c0c7ebb commit 00bb120

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ func (c *Client) PushWithContext(ctx Context, n *Notification) (*Response, error
162162
}
163163

164164
url := fmt.Sprintf("%v/3/device/%v", c.Host, n.DeviceToken)
165-
req, err := http.NewRequest("POST", url, bytes.NewReader(payload))
165+
req, err := http.NewRequest(http.MethodPost, url, bytes.NewReader(payload))
166166
if err != nil {
167167
return nil, err
168168
}

0 commit comments

Comments
 (0)