nst / STHTTPRequest

Obj-C / Cocoa HTTP requests for humans
BSD 3-Clause "New" or "Revised" License
826 stars 75 forks source link

example code for adding header is incorrect #11

Closed JoeStrout closed 11 years ago

JoeStrout commented 11 years ago

The Read Me says:

Adding a request header
[r addHeaderWithName:@"test" value:@"1234"];

...but no such method exists, as far as I can see. I think this should be:

[r setHeaderWithName:@"test" value:@"1234"];
nst commented 11 years ago

you're right, I fixed the documentation https://github.com/nst/STHTTPRequest/commit/fbb94d273ffea91954b5bdf0f28665ffc7051dc0