Skip to content

Conversation

@webaddicto
Copy link
Contributor

@webaddicto webaddicto commented May 6, 2017

		// Return plain text content without replacing URLs
		if(stripos($content_type, "text/plain") === 0){
			$response->setContent($str);
			return;
		}

Try to proxify this URL on unblockvideos.com:
https://raw.githubusercontent.com/Athlon1600/php-proxy-plugin-bundle/master/src/utils.php

Without this commit the proxy proxify all URLs.

@webaddicto
Copy link
Contributor Author

@Athlon1600

What do you think about this commit?

@Athlon1600
Copy link
Owner

Athlon1600 commented May 10, 2017

There is already a block of logic right after:
// DO NOT do any proxification on .js files

that checks to see if current file is worth proxifying. That is where you should check for your content-type and if proxifying is not needed, just jump out of that method with a

return;

@webaddicto
Copy link
Contributor Author

webaddicto commented May 11, 2017

I made the update, let me know if it is fine for you.

@Athlon1600 Athlon1600 merged commit edac728 into Athlon1600:master May 11, 2017
@Athlon1600
Copy link
Owner

Yup this is good now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants