# This patch file was generated by NetBeans IDE
# Following Index: paths are relative to: /Applications/XAMPP/xamppfiles/htdocs/wordpress/wp-includes
# This patch can be applied using context Tools: Patch action on respective folder.
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
Index: class-http.php
--- class-http.php Base (BASE)
+++ class-http.php Locally Modified (Based On LOCAL)
@@ -149,7 +149,7 @@
 			$r['headers'] = array();
 
 		if ( ! is_array( $r['headers'] ) ) {
-			$processedHeaders = WP_Http::processHeaders( $r['headers'] );
+			$processedHeaders = WP_Http::process_headers( $r['headers'] );
 			$r['headers'] = $processedHeaders['headers'];
 		}
 
@@ -164,7 +164,7 @@
 		}
 
 		// Construct Cookie: header if any cookies are set
-		WP_Http::buildCookieHeader( $r );
+		WP_Http::build_cookie_header( $r );
 
 		if ( WP_Http_Encoding::is_available() )
 			$r['headers']['Accept-Encoding'] = WP_Http_Encoding::accept_encoding();
@@ -321,7 +321,7 @@
 	 * @param string $strResponse The full response string
 	 * @return array Array with 'headers' and 'body' keys.
 	 */
-	function processResponse($strResponse) {
+	function process_response($strResponse) {
 		$res = explode("\r\n\r\n", $strResponse, 2);
 
 		return array('headers' => $res[0], 'body' => isset($res[1]) ? $res[1] : '');
@@ -341,7 +341,7 @@
 	 * @return array Processed string headers. If duplicate headers are encountered,
 	 * 					Then a numbered array is returned as the value of that header-key.
 	 */
-	public static function processHeaders($headers) {
+	public static function process_headers($headers) {
 		// split headers, one per array element
 		if ( is_string($headers) ) {
 			// tolerate line terminator: CRLF = LF (RFC 2616 19.3)
@@ -408,11 +408,11 @@
 	 *
 	 * @param array $r Full array of args passed into ::request()
 	 */
-	public static function buildCookieHeader( &$r ) {
+	public static function build_cookie_header( &$r ) {
 		if ( ! empty($r['cookies']) ) {
 			$cookies_header = '';
 			foreach ( (array) $r['cookies'] as $cookie ) {
-				$cookies_header .= $cookie->getHeaderValue() . '; ';
+				$cookies_header .= $cookie->get_header_value() . '; ';
 			}
 			$cookies_header = substr( $cookies_header, 0, -2 );
 			$r['headers']['cookie'] = $cookies_header;
@@ -435,7 +435,7 @@
 	 * @param string $body Body content
 	 * @return string Chunked decoded body on success or raw body on failure.
 	 */
-	function chunkTransferDecode($body) {
+	function chunk_transfer_decode($body) {
 		$body = str_replace(array("\r\n", "\r"), "\n", $body);
 		// The body is not chunked encoding or is malformed.
 		if ( ! preg_match( '/^[0-9a-f]+(\s|\n)+/mi', trim($body) ) )
@@ -627,7 +627,7 @@
 		}
 
 		// Construct Cookie: header if any cookies are set
-		WP_Http::buildCookieHeader( $r );
+		WP_Http::build_cookie_header( $r );
 
 		$iError = null; // Store error number
 		$strError = null; // Store error string
@@ -748,7 +748,7 @@
 				} else {
 					$strResponse .= $block;
 					if ( strpos( $strResponse, "\r\n\r\n" ) ) {
-						$process = WP_Http::processResponse( $strResponse );
+						$process = WP_Http::process_response( $strResponse );
 						$bodyStarted = true;
 						fwrite( $stream_handle, $process['body'] );
 						unset( $strResponse );
@@ -763,7 +763,7 @@
 			while ( ! feof($handle) )
 				$strResponse .= fread( $handle, 4096 );
 
-			$process = WP_Http::processResponse( $strResponse );
+			$process = WP_Http::process_response( $strResponse );
 			unset( $strResponse );
 		}
 
@@ -772,7 +772,7 @@
 		if ( true === $secure_transport )
 			error_reporting($error_reporting);
 
-		$arrHeaders = WP_Http::processHeaders( $process['headers'] );
+		$arrHeaders = WP_Http::process_headers( $process['headers'] );
 
 		// If location is found, then assume redirect and redirect to location.
 		if ( isset($arrHeaders['headers']['location']) && 0 !== $r['_redirection'] ) {
@@ -785,7 +785,7 @@
 
 		// If the body was chunk encoded, then decode it.
 		if ( ! empty( $process['body'] ) && isset( $arrHeaders['headers']['transfer-encoding'] ) && 'chunked' == $arrHeaders['headers']['transfer-encoding'] )
-			$process['body'] = WP_Http::chunkTransferDecode($process['body']);
+			$process['body'] = WP_Http::chunk_transfer_decode($process['body']);
 
 		if ( true === $r['decompress'] && true === WP_Http_Encoding::should_decode($arrHeaders['headers']) )
 			$process['body'] = WP_Http_Encoding::decompress( $process['body'] );
@@ -858,7 +858,7 @@
 		}
 
 		// Construct Cookie: header if any cookies are set
-		WP_Http::buildCookieHeader( $r );
+		WP_Http::build_cookie_header( $r );
 
 		$arrURL = parse_url($url);
 
@@ -956,9 +956,9 @@
 
 		$processedHeaders = array();
 		if ( isset( $meta['wrapper_data']['headers'] ) )
-			$processedHeaders = WP_Http::processHeaders($meta['wrapper_data']['headers']);
+			$processedHeaders = WP_Http::process_headers($meta['wrapper_data']['headers']);
 		else
-			$processedHeaders = WP_Http::processHeaders($meta['wrapper_data']);
+			$processedHeaders = WP_Http::process_headers($meta['wrapper_data']);
 
 		// Streams does not provide an error code which we can use to see why the request stream stopped.
 		// We can however test to see if a location header is present and return based on that.
@@ -966,7 +966,7 @@
 			return new WP_Error('http_request_failed', __('Too many redirects.'));
 
 		if ( ! empty( $strResponse ) && isset( $processedHeaders['headers']['transfer-encoding'] ) && 'chunked' == $processedHeaders['headers']['transfer-encoding'] )
-			$strResponse = WP_Http::chunkTransferDecode($strResponse);
+			$strResponse = WP_Http::chunk_transfer_decode($strResponse);
 
 		if ( true === $r['decompress'] && true === WP_Http_Encoding::should_decode($processedHeaders['headers']) )
 			$strResponse = WP_Http_Encoding::decompress( $strResponse );
@@ -1048,7 +1048,7 @@
 		}
 
 		// Construct Cookie: header if any cookies are set.
-		WP_Http::buildCookieHeader( $r );
+		WP_Http::build_cookie_header( $r );
 
 		$handle = curl_init();
 
@@ -1151,7 +1151,7 @@
 
 		$theResponse = curl_exec( $handle );
 		$theBody = '';
-		$theHeaders = WP_Http::processHeaders( $this->headers );
+		$theHeaders = WP_Http::process_headers( $this->headers );
 
 		if ( strlen($theResponse) > 0 && ! is_bool( $theResponse ) ) // is_bool: when using $args['stream'], curl_exec will return (bool)true
 			$theBody = $theResponse;
@@ -1587,7 +1587,7 @@
 	 *
 	 * @return string Header encoded cookie name and value.
 	 */
-	function getHeaderValue() {
+	function get_header_value() {
 		if ( ! isset( $this->name ) || ! isset( $this->value ) )
 			return '';
 
@@ -1602,8 +1602,8 @@
 	 *
 	 * @return string
 	 */
-	function getFullHeader() {
-		return 'Cookie: ' . $this->getHeaderValue();
+	function get_full_header() {
+		return 'Cookie: ' . $this->get_header_value();
 	}
 }
 
