Ben Copsey

Merge pull request #163 from 0xced/master

Fixed a typo + libxml is hidden from ASIWebPageRequest header
@@ -11,10 +11,6 @@ @@ -11,10 +11,6 @@
11 // Known issue: You cannot use startSychronous with an ASIWebPageRequest 11 // Known issue: You cannot use startSychronous with an ASIWebPageRequest
12 12
13 #import "ASIHTTPRequest.h" 13 #import "ASIHTTPRequest.h"
14 -#import <libxml/HTMLparser.h>  
15 -#import <libxml/xmlsave.h>  
16 -#import <libxml/xpath.h>  
17 -#import <libxml/xpathInternals.h>  
18 14
19 @class ASINetworkQueue; 15 @class ASINetworkQueue;
20 16
@@ -52,7 +48,7 @@ typedef enum _ASIURLReplacementMode { @@ -52,7 +48,7 @@ typedef enum _ASIURLReplacementMode {
52 NSMutableDictionary *resourceList; 48 NSMutableDictionary *resourceList;
53 49
54 // Used internally for parsing HTML (with libxml) 50 // Used internally for parsing HTML (with libxml)
55 - xmlDocPtr doc; 51 + struct _xmlDoc *doc;
56 52
57 // 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 53 // 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
58 ASIWebContentType webContentType; 54 ASIWebContentType webContentType;
@@ -10,6 +10,10 @@ @@ -10,6 +10,10 @@
10 #import "ASIWebPageRequest.h" 10 #import "ASIWebPageRequest.h"
11 #import "ASINetworkQueue.h" 11 #import "ASINetworkQueue.h"
12 #import <CommonCrypto/CommonHMAC.h> 12 #import <CommonCrypto/CommonHMAC.h>
  13 +#import <libxml/HTMLparser.h>
  14 +#import <libxml/xmlsave.h>
  15 +#import <libxml/xpath.h>
  16 +#import <libxml/xpathInternals.h>
13 17
14 // An xPath query that controls the external resources ASIWebPageRequest will fetch 18 // An xPath query that controls the external resources ASIWebPageRequest will fetch
15 // By default, it will fetch stylesheets, javascript files, images, frames, iframes, and html 5 video / audio 19 // By default, it will fetch stylesheets, javascript files, images, frames, iframes, and html 5 video / audio