File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ - (void)testPostHttps {
133133 __block QNResponseInfo *testInfo = nil ;
134134 QNResolver *resolver = [[QNResolver alloc ] initWithAddres: @" 114.114.115.115" ];
135135 QNDnsManager *dns = [[QNDnsManager alloc ] init: [NSArray arrayWithObject: resolver] networkInfo: [QNNetworkInfo normal ]];
136- QNHttpManager *httpManager = [[QNHttpManager alloc ] initWithTimeout: 300 urlConverter: nil dns: dns ];
136+ QNHttpManager *httpManager = [[QNHttpManager alloc ] initWithTimeout: 300 urlConverter: nil dns: nil ];
137137 [httpManager post: @" https://up.qbox.me" withData: nil withParams: nil withHeaders: nil withCompleteBlock: ^(QNResponseInfo *info, NSDictionary *resp) {
138138 testInfo = info;
139139 } withProgressBlock: nil withCancelBlock: nil ];
Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ - (void)testPostHttps {
156156 NSData *data = [@" Hello, World!" dataUsingEncoding: NSUTF8StringEncoding];
157157 QNResolver *resolver = [[QNResolver alloc ] initWithAddres: @" 114.114.115.115" ];
158158 QNDnsManager *dns = [[QNDnsManager alloc ] init: [NSArray arrayWithObject: resolver] networkInfo: [QNNetworkInfo normal ]];
159- QNSessionManager *httpManager = [[QNSessionManager alloc ] initWithProxy: nil timeout: 300 urlConverter: nil dns: dns ];
159+ QNSessionManager *httpManager = [[QNSessionManager alloc ] initWithProxy: nil timeout: 300 urlConverter: nil dns: nil ];
160160 [httpManager post: @" https://up.qbox.me" withData: data withParams: nil withHeaders: nil withCompleteBlock: ^(QNResponseInfo *info, NSDictionary *resp) {
161161 testInfo = info;
162162 } withProgressBlock: nil withCancelBlock: nil ];
You can’t perform that action at this time.
0 commit comments