Skip to content

Commit

Permalink
Update response.go
Browse files Browse the repository at this point in the history
  • Loading branch information
bergusman authored Apr 23, 2022
1 parent 8f8a784 commit 9e3367b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions response.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,12 @@ type Response struct {
Status int // header: :status

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

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

// ParseResponse parses HTTP response r from APNs request.
Expand Down

0 comments on commit 9e3367b

Please sign in to comment.