Created
December 10, 2013 15:24
-
-
Save rblalock/7892382 to your computer and use it in GitHub Desktop.
The bug in the ASIHTTP lib Ti SDK uses - https://jira.appcelerator.org/browse/TIMOB-14954
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The bug | |
if ([requestMethod isEqualToString:@"GET"] || [requestMethod isEqualToString:@"DELETE"] || [requestMethod isEqualToString:@"HEAD"]) { | |
[self setRequestMethod:@"POST"]; | |
} | |
// Why not just | |
if ([requestMethod isEqualToString:@"GET"]) { | |
[self setRequestMethod:@"POST"]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment