Automattic / Automattic-Tracks-iOS

Client library for tracking user events for later analysis
GNU General Public License v2.0
43 stars 12 forks source link

Validates HTTP response code & content #55

Closed astralbodies closed 8 years ago

astralbodies commented 8 years ago

Fixes #54

Turns out I was not verifying that the HTTP response code was valid - I had assumed NSURLSession turned a non-2xx response into an NSError. Oops.

This fixes that, adds an additional check looking for "Success" and unit tests to validate the changes.

Needs Review: @SergioEstevao

SergioEstevao commented 8 years ago

:shipit: