soup-message-io needs to set an error if the response body is truncated
Submitted by Gustavo Noronha (kov)
Assigned to libsoup-maint@gnome.bugs
Link to original bug (#577386)
Description
Diegoe found this while using Epiphany/WebKit. The problem happens with the following site:
https://webaloe.ulima.edu.pe/portalUL/
Here's the relevant WebKit bug: https://bugs.webkit.org/show_bug.cgi?id=24954
The problem seems to happen because the server gives us a 302, and sends back a Connection: close, but sends a fair amount of \r\n's as a body, which confuses libsoup. I'm going to attach a small test case reproducing the problem.
Version: 2.25.x