Skip to content

Commit 9e3367b

Browse files
authored
Update response.go
1 parent 8f8a784 commit 9e3367b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

response.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,12 @@ type Response struct {
163163
Status int // header: :status
164164

165165
// The error code (specified as a string) indicating the reason for the failure.
166-
Reason string `reason:"alert,omitempty"`
166+
Reason string `json:"reason,omitempty"`
167167

168168
// The time, represented in milliseconds since Epoch,
169169
// at which APNs confirmed the token was no longer valid for the topic.
170170
// This key is included only when the error in the :status field is 410.
171-
Timestamp int64 `timestamp:"alert,omitempty"`
171+
Timestamp int64 `json:"timestamp,omitempty"`
172172
}
173173

174174
// ParseResponse parses HTTP response r from APNs request.

0 commit comments

Comments
 (0)