mirror of https://github.com/axmolengine/axmol.git
Merge pull request #12891 from fusijie/refine_HttpAsynConnection
refine NSLog in HttpAsynConnection in release mode.
This commit is contained in:
commit
c82cf5ecd4
|
@ -61,7 +61,10 @@
|
|||
|
||||
- (void) startRequest:(NSURLRequest *)request
|
||||
{
|
||||
#ifdef COCOS2D_DEBUG
|
||||
NSLog(@"Starting to load %@", srcURL);
|
||||
#endif
|
||||
|
||||
finish = false;
|
||||
|
||||
self.responseData = [NSMutableData data];
|
||||
|
@ -90,7 +93,9 @@
|
|||
**/
|
||||
- (void) connection:(NSURLConnection *)connection
|
||||
didReceiveResponse:(NSURLResponse *)response {
|
||||
#ifdef COCOS2D_DEBUG
|
||||
NSLog(@"Received response from request to url %@", srcURL);
|
||||
#endif
|
||||
|
||||
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *)response;
|
||||
//NSLog(@"All headers = %@", [httpResponse allHeaderFields]);
|
||||
|
|
Loading…
Reference in New Issue