Skip to content
This repository has been archived by the owner on Jun 23, 2021. It is now read-only.
This repository has been archived by the owner on Jun 23, 2021. It is now read-only.

verifyTransaction method failure block always gets called for Sandbox receipts #1

Closed
mrakowski opened this issue Sep 10, 2012 · 2 comments

Comments

@mrakowski
Copy link

Using the verifyTransaction example from the readme results in the failure block always being called due to receiving a content type of text/plain from the Apple receipt server.

This is the error I get in the failure block of verifyTransaction:

Error -1016 (Expected content type {(
"text/json",
"application/json",
"text/javascript"
)}, got text/plain)

Could the http client in CargoBay be made less strict so that it can accept a text/plain response? Seems like the json from Apple may be valid but doesn't have the correct header.

Only tested this in the Sandbox environment so maybe it's not an issue in production.

@mattt
Copy link
Owner

mattt commented Sep 10, 2012

Oh geez. Apple.... Y U NO send the right content type? Will fix right away.

mattt added a commit that referenced this issue Sep 10, 2012
@mattt
Copy link
Owner

mattt commented Sep 10, 2012

Fixed in d09522a. Thanks for pointing this out to me.

@mattt mattt closed this as completed Sep 10, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants