Commit 4779dce4 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev
Browse files

changed response headers text/html -> text/plain to combat LibreJS (if turned...

changed response headers text/html -> text/plain to combat LibreJS (if turned on) modifying interceptions
parent 80505297
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -236,7 +236,11 @@ function filter_record_by_file($a,$f){
    return $res;
}

// default CT is text/html - LibreJS can add extra tags: <html><head></head><body>response</body></html>
header("Content-Type: text/plain");

if ($cmd=="do_nothing"){

    if (isset($_GET['file'])) $file = $_GET['file'];
    else                      $file = $DEBUGFSFILE;