We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f8a784 commit 9e3367bCopy full SHA for 9e3367b
response.go
@@ -163,12 +163,12 @@ type Response struct {
163
Status int // header: :status
164
165
// The error code (specified as a string) indicating the reason for the failure.
166
- Reason string `reason:"alert,omitempty"`
+ Reason string `json:"reason,omitempty"`
167
168
// The time, represented in milliseconds since Epoch,
169
// at which APNs confirmed the token was no longer valid for the topic.
170
// This key is included only when the error in the :status field is 410.
171
- Timestamp int64 `timestamp:"alert,omitempty"`
+ Timestamp int64 `json:"timestamp,omitempty"`
172
}
173
174
// ParseResponse parses HTTP response r from APNs request.
0 commit comments