You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/* Sniff out the content-type header.
* If the response is HTML, we're safe to modify it.
*/
if (!_htmlOnly && res.isHtml()) {
res.removeHeader('Content-Length');
delete headers['content-length'];
}
If I have an HTML response, but I'm targeted to HTML only, the content length won't get overwritten, which leads to
"Error: Transferred a partial file" errors on the response.
Why is this guarded by !_htmlOnly?
The text was updated successfully, but these errors were encountered:
This looks like a mistake and breaks some sites. Shouldn't it just be? @No9 can you please take a look?
/* Sniff out the content-type header. * If the response is HTML, we're safe to modify it. */if(res.isHtml()){res.removeHeader('Content-Length');deleteheaders['content-length'];}
If I have an HTML response, but I'm targeted to HTML only, the content length won't get overwritten, which leads to
"Error: Transferred a partial file" errors on the response.
Why is this guarded by
!_htmlOnly
?The text was updated successfully, but these errors were encountered: