Update console.html

This commit is contained in:
Namhyeon Go 2024-11-24 01:39:50 +09:00
parent e3b5a344e3
commit 297f0595f7

View File

@ -134,7 +134,7 @@
// for dirty response (e.g., magic header, advertise logo)
try {
var start = s.indexOf('{');
var end = [s.indexOf("}\r\n\r\n"), s.lastIndexOf('}')].reduce(function(x) {
var end = [s.indexOf("}\r\n\r\n"), s.lastIndexOf('}')].reduce(function(a, x) {
if (x > 0 && a < x) {
a = x; // set new value if x greater than 0 and x less than previous value
}