@@ 2273-2284 (lines=12) @@ | ||
2270 | $bd = 0; |
|
2271 | } |
|
2272 | } |
|
2273 | if ($bd) |
|
2274 | { |
|
2275 | // this filters out all http headers from proxy. |
|
2276 | // maybe we could take them into account, too? |
|
2277 | $data = substr($data, $bd); |
|
2278 | } |
|
2279 | else |
|
2280 | { |
|
2281 | error_log('XML-RPC: '.__METHOD__.': HTTPS via proxy error, tunnel connection possibly failed'); |
|
2282 | $r=new xmlrpcresp(0, $GLOBALS['xmlrpcerr']['http_error'], $GLOBALS['xmlrpcstr']['http_error']. ' (HTTPS via proxy error, tunnel connection possibly failed)'); |
|
2283 | return $r; |
|
2284 | } |
|
2285 | } |
|
2286 | ||
2287 | // Strip HTTP 1.1 100 Continue header if present |
|
@@ 2425-2430 (lines=6) @@ | ||
2422 | // Decode chunked encoding sent by http 1.1 servers |
|
2423 | if(isset($GLOBALS['_xh']['headers']['transfer-encoding']) && $GLOBALS['_xh']['headers']['transfer-encoding'] == 'chunked') |
|
2424 | { |
|
2425 | if(!$data = decode_chunked($data)) |
|
2426 | { |
|
2427 | error_log('XML-RPC: '.__METHOD__.': errors occurred when trying to rebuild the chunked data received from server'); |
|
2428 | $r = new xmlrpcresp(0, $GLOBALS['xmlrpcerr']['dechunk_fail'], $GLOBALS['xmlrpcstr']['dechunk_fail']); |
|
2429 | return $r; |
|
2430 | } |
|
2431 | } |
|
2432 | ||
2433 | // Decode gzip-compressed stuff |