We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de75904 commit e0eefb4Copy full SHA for e0eefb4
src/Plugin/ProxifyPlugin.php
@@ -163,6 +163,12 @@ public function onCompleted(ProxyEvent $event){
163
}
164
165
166
+ // Return plain text content without replacing URLs
167
+ if(stripos($content_type, "text/plain") === 0){
168
+ $response->setContent($str);
169
+ return;
170
+ }
171
+
172
// add html.no-js
173
174
// let's remove all frames?? does not protect against the frames created dynamically via javascript
@@ -182,4 +188,4 @@ public function onCompleted(ProxyEvent $event){
182
188
183
189
184
190
185
-?>
191
+?>
0 commit comments