pjaspers/Tin — Issue #1: clearSession
Author: Novarg1
Created: 2011-11-04 15:01:01+00:00
State: open

- (void)setOptionsOnRequest:(ASIHTTPRequest *)request {
[request setUsername:self.username];
[request setPassword:self.password];
[ASIHTTPRequest clearSession];
if (self.timeoutSeconds) {
[request setTimeOutSeconds:self.timeoutSeconds];
}
if (self.headers) {
[self.headers enumerateKeysAndObjectsUsingBlock:^(id key, id obj, BOOL *stop) {
[request addRequestHeader:key value:obj];
}];
}
}