Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #24 from mercari/update-buford-v0.7.0
Browse files Browse the repository at this point in the history
apns: bumped buford version to v0.7.0.
  • Loading branch information
cubicdaiya authored Jun 20, 2016
2 parents c0d489c + e806311 commit 57294e7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
7 changes: 6 additions & 1 deletion gaurun/apns_http2.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package gaurun

import (
"crypto/tls"
"encoding/json"
"net/http"
"time"

Expand Down Expand Up @@ -83,6 +84,10 @@ func NewApnsHeadersHttp2(req *RequestGaurunNotification) *push.Headers {
}

func ApnsPushHttp2(token string, service *push.Service, headers *push.Headers, payload map[string]interface{}) error {
_, err := service.Push(token, headers, payload)
b, err := json.Marshal(payload)
if err != nil {
return err
}
_, err = service.Push(token, headers, b)
return err
}
6 changes: 3 additions & 3 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions glide.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import:
- package: github.com/BurntSushi/toml
version: v0.2.0
- package: github.com/RobotsAndPencils/buford
version: v0.7.0
subpackages:
- payload
- payload/badge
Expand Down

0 comments on commit 57294e7

Please sign in to comment.