diff --git a/Tests/AFImageRequestOperationTests.m b/Tests/AFImageRequestOperationTests.m index a8e03ed..a757c75 100644 --- a/Tests/AFImageRequestOperationTests.m +++ b/Tests/AFImageRequestOperationTests.m @@ -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];