mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Remove Preferences::network_tls_ignore_unexpected_eof
(#35080)
This workaround was introduced to handle an issue with the WPT server, but it seems that it is no longer needed. This change removes the prefernce and the workarond code. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
9ceb957dd8
commit
2965b2fda7
3 changed files with 2 additions and 13 deletions
|
@ -32,7 +32,6 @@ use http_body_util::BodyExt;
|
|||
use hyper::body::Body;
|
||||
use hyper::header::{HeaderValue, CONTENT_ENCODING, TRANSFER_ENCODING};
|
||||
use hyper::Response;
|
||||
use servo_config::pref;
|
||||
use tokio_util::codec::{BytesCodec, FramedRead};
|
||||
use tokio_util::io::StreamReader;
|
||||
|
||||
|
@ -279,9 +278,7 @@ impl Stream for BodyStream {
|
|||
let all_content_read = self
|
||||
.content_length
|
||||
.map_or(false, |c| c.0 == self.total_read);
|
||||
if self.is_secure_scheme &&
|
||||
(all_content_read || pref!(network_tls_ignore_unexpected_eof))
|
||||
{
|
||||
if self.is_secure_scheme && all_content_read {
|
||||
let source = err.source();
|
||||
let is_unexpected_eof = source
|
||||
.and_then(|e| e.downcast_ref::<io::Error>())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue