From 9e3367b5f4fd745da93895c0c34201147fed25a8 Mon Sep 17 00:00:00 2001 From: Vitaly Berg Date: Sat, 23 Apr 2022 20:36:18 +0800 Subject: [PATCH] Update response.go --- response.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/response.go b/response.go index 0c88395..a55be97 100644 --- a/response.go +++ b/response.go @@ -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.