Skip to content

Commit edac728

Browse files
authored
Merge pull request #59 from webaddicto/patch-10
Return "text/plain" content without replacing URLs
2 parents bc72a02 + b6b8695 commit edac728

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Plugin/ProxifyPlugin.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ public function onCompleted(ProxyEvent $event){
146146

147147
$str = $response->getContent();
148148

149-
// DO NOT do any proxification on .js files
150-
if($content_type == 'text/javascript' || $content_type == 'application/javascript' || $content_type == 'application/x-javascript'){
149+
// DO NOT do any proxification on .js files and text/plain content type
150+
if($content_type == 'text/javascript' || $content_type == 'application/javascript' || $content_type == 'application/x-javascript' || $content_type == 'text/plain'){
151151
return;
152152
}
153153

@@ -182,4 +182,4 @@ public function onCompleted(ProxyEvent $event){
182182

183183
}
184184

185-
?>
185+
?>

0 commit comments

Comments
 (0)