Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support http2-client 0.10.0.1 #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion push-notify-apn.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ library
, containers
, data-default
, http2
, http2-client
, http2-client >= 0.10.0.1
, lifted-base
, mtl
, random
Expand Down
2 changes: 1 addition & 1 deletion src/Network/PushNotify/APN.hs
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ sendApnRaw connection deviceToken mJwtBearerToken message = bracket_
upload message (HTTP2.setEndHeader . HTTP2.setEndStream) client (_outgoingFlowControl client) stream osfc
let pph _hStreamId _hStream hHeaders _hIfc _hOfc =
lift $ print hHeaders
response <- waitStream stream isfc pph
response <- waitStream client stream isfc pph
let (errOrHeaders, frameResponses, _) = response
case errOrHeaders of
Left err -> throwIO (ApnExceptionHTTP $ toErrorCodeId err)
Expand Down