diff --git a/AFNetworking/NSMutableURLRequest+AFNetworking.h b/AFNetworking/NSMutableURLRequest+AFNetworking.h index 40553c8..7823f12 100644 --- a/AFNetworking/NSMutableURLRequest+AFNetworking.h +++ b/AFNetworking/NSMutableURLRequest+AFNetworking.h @@ -28,6 +28,6 @@ mimeType:(NSString *)mimeType forParameterNamed:(NSString *)parameterName parameters:(NSDictionary *)parameters - useCompression:(BOOL)useCompression; + useGzipCompression:(BOOL)useGzipCompression; @end diff --git a/AFNetworking/NSMutableURLRequest+AFNetworking.m b/AFNetworking/NSMutableURLRequest+AFNetworking.m index 7a4e712..3d02670 100644 --- a/AFNetworking/NSMutableURLRequest+AFNetworking.m +++ b/AFNetworking/NSMutableURLRequest+AFNetworking.m @@ -29,7 +29,7 @@ mimeType:(NSString *)mimeType forParameterNamed:(NSString *)parameterName parameters:(NSDictionary *)parameters - useCompression:(BOOL)useCompression + useGzipCompression:(BOOL)useGzipCompression { if ([[self HTTPMethod] isEqualToString:@"GET"]) { [self setHTTPMethod:@"POST"]; @@ -58,7 +58,7 @@ [mutableData appendData:data]; [mutableData appendData:[[NSString stringWithFormat:@"\r\n--%@--\r\n", boundary] dataUsingEncoding:NSUTF8StringEncoding]]; - if (useCompression) { + if (useGzipCompression) { NSError *error = nil; NSData *compressedData = [mutableData dataByGZipCompressingWithError:&error];