ios test
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
//
|
||||
// HttpdnsScheduleExecutor.m
|
||||
// TrustHttpDNS
|
||||
// NewHttpDNS
|
||||
//
|
||||
// Created by ElonChan(地风) on 2017/4/11.
|
||||
// Copyright © 2017<EFBFBD><EFBFBD>?trustapp.com. All rights reserved.
|
||||
@@ -94,8 +94,8 @@
|
||||
if (response.statusCode != 200) {
|
||||
NSDictionary *dict = @{@"ResponseCode": [NSString stringWithFormat:@"%ld", (long)response.statusCode]};
|
||||
if (pError) {
|
||||
*pError = [NSError errorWithDomain:Trust_HTTPDNS_ERROR_DOMAIN
|
||||
code:Trust_HTTPDNS_HTTPS_NO_DATA_ERROR_CODE
|
||||
*pError = [NSError errorWithDomain:NEW_HTTPDNS_ERROR_DOMAIN
|
||||
code:NEW_HTTPDNS_HTTPS_NO_DATA_ERROR_CODE
|
||||
userInfo:dict];
|
||||
}
|
||||
return nil;
|
||||
@@ -118,8 +118,8 @@
|
||||
}
|
||||
|
||||
if (pError) {
|
||||
*pError = [NSError errorWithDomain:Trust_HTTPDNS_ERROR_DOMAIN
|
||||
code:Trust_HTTP_PARSE_JSON_FAILED
|
||||
*pError = [NSError errorWithDomain:NEW_HTTPDNS_ERROR_DOMAIN
|
||||
code:NEW_HTTP_PARSE_JSON_FAILED
|
||||
userInfo:@{NSLocalizedDescriptionKey: @"Failed to parse JSON response"}];
|
||||
}
|
||||
if (pError != NULL) {
|
||||
|
||||
Reference in New Issue
Block a user