Athlon1600 / php-proxy

A web proxy script written in PHP and built as an alternative to Glype.
https://www.php-proxy.com
MIT License
295 stars 158 forks source link

ProxifyPlugin: Split content-type header on no_profixy check #132

Closed soult closed 4 years ago

soult commented 4 years ago

The Content-Type header can contain additional information like encoding, separated by a semicolon. Since we only care about the media type, we can split at the first semicolon and ignore the rest.

Athlon1600 commented 4 years ago

there already was a function to cleanly extract content type here: https://github.com/Athlon1600/php-proxy/blob/master/src/helpers.php#L6

ProxifyPlugin was updated to use that function here: https://github.com/Athlon1600/php-proxy/commit/14e2a38e5b424d69fff82171e357d658ee158e11