Permalink
Browse files

Fix the userAgent test case.

  • Loading branch information...
1 parent 6cf5f08 commit 6ce86c3d271e1e979e49b472d29f16e2e586c09f @jaygraves jaygraves committed Mar 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Classes/Tests/ASIHTTPRequestTests.m
@@ -400,7 +400,7 @@ - (void)testUserAgent
// Test again using userAgent
request = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:@"http://allseeing-i.com/ASIHTTPRequest/tests/user-agent"]];
- [request setUserAgent:customUserAgent];
+ [request setUserAgentString:customUserAgent];
[request startSynchronous];
success = [[request responseString] isEqualToString:customUserAgent];
GHAssertTrue(success,@"Failed to set the correct user-agent for a single request");

0 comments on commit 6ce86c3

Please sign in to comment.