equal
deleted
inserted
replaced
171 } |
171 } |
172 |
172 |
173 curl_setopt( $handle, CURLOPT_HEADER, false ); |
173 curl_setopt( $handle, CURLOPT_HEADER, false ); |
174 |
174 |
175 if ( isset( $parsed_args['limit_response_size'] ) ) { |
175 if ( isset( $parsed_args['limit_response_size'] ) ) { |
176 $this->max_body_length = intval( $parsed_args['limit_response_size'] ); |
176 $this->max_body_length = (int) $parsed_args['limit_response_size']; |
177 } else { |
177 } else { |
178 $this->max_body_length = false; |
178 $this->max_body_length = false; |
179 } |
179 } |
180 |
180 |
181 // If streaming to a file open a file handle, and setup our curl streaming handler. |
181 // If streaming to a file open a file handle, and setup our curl streaming handler. |