...
|
...
|
@@ -152,7 +152,7 @@ |
|
|
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse*)res;
|
|
|
NSDictionary *httpResponseHeaderFields = [httpResponse allHeaderFields];
|
|
|
NSString *contentLength = [NSString stringWithFormat:@"%lld",[[httpResponseHeaderFields objectForKey:@"Content-Length"] longLongValue]];
|
|
|
NSString *statusCode = [NSString stringWithFormat:@"%lld",httpResponse.statusCode];
|
|
|
NSString *statusCode = [NSString stringWithFormat:@"%ld",(long)httpResponse.statusCode];
|
|
|
|
|
|
[[YH_EventCollector sharedInstance] timeEventEndWithRequestUrl:[request.URL absoluteString] HTTPMethod:request.HTTPMethod statusCode:statusCode contentLength:contentLength];
|
|
|
}
|
...
|
...
|
@@ -179,7 +179,7 @@ |
|
|
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse*)response;
|
|
|
NSDictionary *httpResponseHeaderFields = [httpResponse allHeaderFields];
|
|
|
NSString *contentLength = [NSString stringWithFormat:@"%lld",[[httpResponseHeaderFields objectForKey:@"Content-Length"] longLongValue]];
|
|
|
NSString *statusCode = [NSString stringWithFormat:@"%lld",httpResponse.statusCode];
|
|
|
NSString *statusCode = [NSString stringWithFormat:@"%ld",(long)httpResponse.statusCode];
|
|
|
|
|
|
[[YH_EventCollector sharedInstance] timeEventEndWithRequestUrl:[request.URL absoluteString] HTTPMethod:request.HTTPMethod statusCode:statusCode contentLength:contentLength];
|
|
|
|
...
|
...
|
@@ -211,7 +211,7 @@ |
|
|
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse*)connection.my_response;
|
|
|
NSDictionary *httpResponseHeaderFields = [httpResponse allHeaderFields];
|
|
|
NSString *contentLength = [NSString stringWithFormat:@"%lld",[[httpResponseHeaderFields objectForKey:@"Content-Length"] longLongValue]];
|
|
|
NSString *statusCode = [NSString stringWithFormat:@"%lld",httpResponse.statusCode];
|
|
|
NSString *statusCode = [NSString stringWithFormat:@"%ld",(long)httpResponse.statusCode];
|
|
|
|
|
|
[[YH_EventCollector sharedInstance] timeEventEndWithRequestUrl:[connection.currentRequest.URL absoluteString] HTTPMethod:connection.currentRequest.HTTPMethod statusCode:statusCode contentLength:contentLength];
|
|
|
}
|
...
|
...
|
|