Requests_Transport_fsockopen::accept_encoding()

最后更新于:2021-11-26 04:07:44

Requests_Transport_fsockopen::accept_encoding()

Retrieve the encodings we can accept

响应

(string) Accept-Encoding header value

源文件

文件: gc-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);
	}