wp/wp-includes/class-wp-http-curl.php
changeset 18 be944660c56a
parent 16 a86126ab1dd4
child 19 3d72ae0968f4
equal deleted inserted replaced
17:34716fd837a4 18:be944660c56a
   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.