Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed cookie issue

  • Loading branch information...
commit c6b16b2f2e520184923758f43c450a96ce4695e1 1 parent 23a10d9
Greg Allen authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  OWAParser/OWAParser.h
  2. +2 −2 OWAParser/OWAParser.m
View
2  OWAParser/OWAParser.h
@@ -22,7 +22,7 @@
@property (nonatomic, copy) NSString *username;
@property (nonatomic, copy) NSString *password;
@property (nonatomic, copy) NSString *baseUrl;
-@property (readonly, nonatomic, retain) NSMutableArray *folders;
+@property (nonatomic, retain) NSMutableArray *folders;
-(id)initWithURL:(NSString *)aUrl username:(NSString *)aLogin password:(NSString *)aPassword;
-(BOOL)login;
View
4 OWAParser/OWAParser.m
@@ -151,7 +151,7 @@ -(BOOL)login {
return NO;
} else if ([html rangeOfString:@"hidcanary"].location != NSNotFound) {
/* Get an array with all the cookies */
- NSArray *cookies = [[NSHTTPCookie cookiesWithResponseHeaderFields:[response allHeaderFields] forURL:[NSURL URLWithString:[self getBaseUrlWithoutAuth]]] retain];
+ cookies = [[NSHTTPCookie cookiesWithResponseHeaderFields:[response allHeaderFields] forURL:[NSURL URLWithString:[self getBaseUrlWithoutAuth]]] retain];
/* Add the array of cookies in the shared cookie storage instance */
[[NSHTTPCookieStorage sharedHTTPCookieStorage]
setCookies:cookies
@@ -185,7 +185,7 @@ -(NSArray*)getFolders {
if (!self.folders) {
NSString *xpathQueryString = @"//table[@class='wh100']/tr/td/table[@class='snt']/tr";
NSArray *nodes = [self performXPathQuery:xpathQueryString onUrl:@""];
- folders = [[[NSMutableArray alloc] initWithCapacity:[nodes count]] retain];
+ self.folders = [[[NSMutableArray alloc] initWithCapacity:[nodes count]] retain];
for (int i = 0; i < [nodes count]; i++) {
[folders addObject:[self parseFolderNode:[nodes objectAtIndex:i]]];
}
Please sign in to comment.
Something went wrong with that request. Please try again.