File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff 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
@@ -163,12 +163,6 @@ public function onCompleted(ProxyEvent $event){
163163 }
164164 }
165165
166- // Return plain text content without replacing URLs
167- if (stripos ($ content_type , "text/plain " ) === 0 ){
168- $ response ->setContent ($ str );
169- return ;
170- }
171-
172166 // add html.no-js
173167
174168 // let's remove all frames?? does not protect against the frames created dynamically via javascript
You can’t perform that action at this time.
0 commit comments