From d159be3757b13ae1ec5c7b661d8a96914208794d Mon Sep 17 00:00:00 2001 From: Mattt Thompson Date: Sat, 12 Nov 2011 18:19:00 -0600 Subject: [PATCH] Adding missing authorization header in example --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 13d7c91..6dbd910 100644 --- a/README.md +++ b/README.md @@ -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 = ^ {