Fix bug involving HttpStatusResponse

the `ok` in `r, ok := result.(*HttpStatusResponse)` would always fail unless the `result` being passed in was also of type `HttpStatusResponse`
This commit is contained in:
Timothy Lock
2018-01-17 16:47:14 -05:00
parent 132768c0fe
commit fe51698284
3 changed files with 19 additions and 6 deletions

View File

@@ -115,7 +115,7 @@ type (
// The HttpStatusResponse struct contains the status code returned by the store
// Used as a workaround to detect when to hit the production appstore or sandbox appstore regardless of receipt type
HttpStatusResponse struct {
StatusResponse struct {
Status int `json:"status"`
}
)