File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -162,12 +162,12 @@ - (void) sendRequest:(NSMutableURLRequest *)request
162162 withCompleteBlock : (QNCompleteBlock)completeBlock
163163 withProgressBlock : (QNInternalProgressBlock)progressBlock
164164 withCancelBlock : (QNCancelBlock)cancelBlock {
165+ NSString *u = request.URL .absoluteString ;
165166 NSURL *url = request.URL ;
166167 NSString *domain =url.host ;
167168 NSArray * ips = nil ;
168169 NSDate *startTime = [NSDate date ];
169170 if (_converter != nil ) {
170- NSString *u = request.URL .absoluteString ;
171171 url = [[NSURL alloc ] initWithString: _converter (u)];
172172 request.URL = url;
173173 domain = url.host ;
Original file line number Diff line number Diff line change @@ -145,12 +145,14 @@ - (void) sendRequest:(NSMutableURLRequest *)request
145145 withProgressBlock : (QNInternalProgressBlock)progressBlock
146146 withCancelBlock : (QNCancelBlock)cancelBlock {
147147 __block NSDate *startTime = [NSDate date ];
148+
148149 NSString *domain = request.URL .host ;
150+
151+ NSString *u = request.URL .absoluteString ;
149152 NSURL *url = request.URL ;
150153 NSArray *ips = nil ;
151154 if (_converter != nil ) {
152- NSString *u = request.URL .absoluteString ;
153- url = [[NSURL alloc ] initWithString: _converter (u)];
155+ url = [[NSURL alloc ] initWithString: _converter (u)];
154156 request.URL = url;
155157 domain = url.host ;
156158 } else if (_noProxy && _dns != nil && [url.scheme isEqualToString: @" http" ]){
You can’t perform that action at this time.
0 commit comments