Skip to content

Commit e2f2815

Browse files
committed
Merge pull request pokeb#163 from 0xced/master
Fixed a typo + libxml is hidden from ASIWebPageRequest header
2 parents ffbc0a4 + 5936cdd commit e2f2815

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Classes/ASIWebPageRequest/ASIWebPageRequest.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111
// Known issue: You cannot use startSychronous with an ASIWebPageRequest
1212

1313
#import "ASIHTTPRequest.h"
14-
#import <libxml/HTMLparser.h>
15-
#import <libxml/xmlsave.h>
16-
#import <libxml/xpath.h>
17-
#import <libxml/xpathInternals.h>
1814

1915
@class ASINetworkQueue;
2016

@@ -52,7 +48,7 @@ typedef enum _ASIURLReplacementMode {
5248
NSMutableDictionary *resourceList;
5349

5450
// Used internally for parsing HTML (with libxml)
55-
xmlDocPtr doc;
51+
struct _xmlDoc *doc;
5652

5753
// If the response is an HTML or CSS file, this will be set so the content can be correctly parsed when it has finished fetching external resources
5854
ASIWebContentType webContentType;

Classes/ASIWebPageRequest/ASIWebPageRequest.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
#import "ASIWebPageRequest.h"
1111
#import "ASINetworkQueue.h"
1212
#import <CommonCrypto/CommonHMAC.h>
13+
#import <libxml/HTMLparser.h>
14+
#import <libxml/xmlsave.h>
15+
#import <libxml/xpath.h>
16+
#import <libxml/xpathInternals.h>
1317

1418
// An xPath query that controls the external resources ASIWebPageRequest will fetch
1519
// By default, it will fetch stylesheets, javascript files, images, frames, iframes, and html 5 video / audio

0 commit comments

Comments
 (0)