Requests_Transport_fsockopen::accept_encoding()

Retrieve the encodings we can accept


Description Description


Return Return

(string) Accept-Encoding header value


Top ↑

Source Source

File: wp-includes/Requests/Transport/fsockopen.php

	protected static function accept_encoding() {
		$type = array();
		if (function_exists('gzinflate')) {
			$type[] = 'deflate;q=1.0';
		}

		if (function_exists('gzuncompress')) {
			$type[] = 'compress;q=0.5';
		}

		$type[] = 'gzip;q=0.5';

		return implode(', ', $type);
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.