Permalink
Browse files

Fix the userAgent test case.

  • Loading branch information...
jaygraves authored and John Whaley committed Mar 7, 2012
1 parent 417571a commit 29f41c78ed7d55c95e4ca2dcc5e97877aca7334f
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 29f41c7

Please sign in to comment.