尝试将输入的URL通过代理服务器重定向到新请求时出现上述错误。
NSMutableURLRequest *newRequest = [self.request mutableCopy];
newRequest.HTTPMethod = @"GET";
[newRequest setHTTPBody:nil];
[newRequest setValue:nil forHTTPHeaderField:@"Content-Length"];
[newRequest setValue:nil forHTTPHeaderField:@"Content-Type"];
[newRequest setValue:nil forHTTPHeaderField:@"Proxy-Authorization"];
[newRequest setCachePolicy:NSURLRequestUseProtocolCachePolicy];
[newRequest setURL:toURL];
[[self client] URLProtocol:self wasRedirectedToRequest:newRequest redirectResponse:response];