Skip to content

Commit

Permalink
Merge pull request AFNetworking#3751 from 0xced/deprecate-stringEncoding
Browse files Browse the repository at this point in the history
Deprecate the unused stringEncoding property of AFHTTPResponseSerializer
  • Loading branch information
0xced authored Oct 14, 2016
2 parents 5b6def1 + 33a403c commit 4f3c694
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 1 addition & 4 deletions AFNetworking/AFURLResponseSerialization.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,7 @@ NS_ASSUME_NONNULL_BEGIN

- (instancetype)init;

/**
The string encoding used to serialize data received from the server, when no string encoding is specified by the response. `NSUTF8StringEncoding` by default.
*/
@property (nonatomic, assign) NSStringEncoding stringEncoding;
@property (nonatomic, assign) NSStringEncoding stringEncoding DEPRECATED_MSG_ATTRIBUTE("The string encoding is never used. AFHTTPResponseSerializer only validates status codes and content types but does not try to decode the received data in any way.");

/**
Creates and returns a serializer with default configuration.
Expand Down
2 changes: 0 additions & 2 deletions AFNetworking/AFURLResponseSerialization.m
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ - (instancetype)init {
return nil;
}

self.stringEncoding = NSUTF8StringEncoding;

self.acceptableStatusCodes = [NSIndexSet indexSetWithIndexesInRange:NSMakeRange(200, 100)];
self.acceptableContentTypes = nil;

Expand Down

0 comments on commit 4f3c694

Please sign in to comment.