Skip to content

Instantly share code, notes, and snippets.

@rblalock
Created December 10, 2013 15:24
Show Gist options
  • Save rblalock/7892382 to your computer and use it in GitHub Desktop.
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
// 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