зеркало из https://github.com/github/AFNetworking.git
Merge pull request #1124 from carsonmcdonald/fiximagetest
Use new httpbin image request to fix image test
This commit is contained in:
Коммит
81ab861fd3
|
@ -105,7 +105,9 @@
|
|||
}
|
||||
|
||||
- (void)testThatImageResponseIsNotNilWhenRequestSucceeds {
|
||||
NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"/response-headers?Content-Type=image/png" relativeToURL:self.baseURL]];
|
||||
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"/image" relativeToURL:self.baseURL]];
|
||||
[request setValue:@"image/png" forHTTPHeaderField:@"Accept"];
|
||||
|
||||
AFImageRequestOperation *operation = [[AFImageRequestOperation alloc] initWithRequest:request];
|
||||
[operation start];
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче