Skip to content
Browse files

Merge branch 'master' of github.com:AFNetworking/AFNetworking

  • Loading branch information...
2 parents e681d45 + 81ab861 commit 77225e955a955232f11a58a42b35bc8461dca818 @mattt mattt committed Jul 11, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 Tests/AFImageRequestOperationTests.m
View
4 Tests/AFImageRequestOperationTests.m
@@ -105,7 +105,9 @@ - (void)testThatImageRequestOperationDoesNotAcceptInvalidFormatTypes {
}
- (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];

0 comments on commit 77225e9

Please sign in to comment.
Something went wrong with that request. Please try again.