Permalink
Browse files

Remove unnescessary property setup in initWithURL

  • Loading branch information...
1 parent 1192c85 commit f1066978314b2e131e1bb190762667e9430aec9d @pokeb committed May 31, 2009
Showing with 3 additions and 30 deletions.
  1. +3 −30 Classes/ASIHTTPRequest.m
View
@@ -61,45 +61,18 @@ - (id)initWithURL:(NSURL *)newURL
{
self = [super init];
[self setRequestMethod:@"GET"];
- lastBytesSent = 0;
- showAccurateProgress = YES;
- shouldResetProgressIndicators = YES;
- updatedProgress = NO;
- [self setMainRequest:nil];
- [self setPassword:nil];
- [self setUsername:nil];
- [self setRequestHeaders:nil];
- authenticationRetryCount = 0;
- authenticationMethod = nil;
- authenticationRealm = nil;
- outputStream = nil;
- requestAuthentication = NULL;
- haveBuiltPostBody = NO;
- request = NULL;
- [self setDidCreateTemporaryPostDataFile:NO];
- [self setPostBodyFilePath:nil];
- [self setPostBodyWriteStream:nil];
- [self setPostBodyReadStream:nil];
- [self setShouldStreamPostDataFromDisk:NO];
+ [self setShowAccurateProgress:YES];
+ [self setShouldResetProgressIndicators:YES];
[self setAllowCompressedResponse:YES];
[self setDefaultResponseEncoding:NSISOLatin1StringEncoding];
- [self setUploadBufferSize:0];
- [self setContentLength:0];
- [self setPartialDownloadSize:0];
- [self setResponseHeaders:nil];
+
[self setTimeOutSeconds:10];
- [self setAllowResumeForFileDownloads:NO];
- [self setUseKeychainPersistance:NO];
[self setUseSessionPersistance:YES];
[self setUseCookiePersistance:YES];
- [self setRawResponseData:nil];
[self setRequestCookies:[[[NSMutableArray alloc] init] autorelease]];
[self setDidFinishSelector:@selector(requestFinished:)];
[self setDidFailSelector:@selector(requestFailed:)];
- [self setDelegate:nil];
- [self setQueue:nil];
- [self setUserInfo:nil];
url = [newURL retain];
cancelledLock = [[NSLock alloc] init];
return self;

0 comments on commit f106697

Please sign in to comment.