Skip to content

Commit

Permalink
Adding missing authorization header in example
Browse files Browse the repository at this point in the history
  • Loading branch information
mattt committed Nov 13, 2011
1 parent 5a3a9b2 commit d159be3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ NSOperationQueue *queue = [[[NSOperationQueue alloc] init] autorelease];
``` objective-c
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://gowalla.com/friendships/request?user_id=1699"]];
[request setHTTPMethod:@"POST"];
[request setValue:@"#{Base64-Encoded Credentials}" forHTTPHeaderField:@"Authorization"];
AFHTTPRequestOperation *operation = [[[AFHTTPRequestOperation alloc] initWithRequest:request] autorelease];
operation.completionBlock = ^ {
Expand Down

0 comments on commit d159be3

Please sign in to comment.