[Webkit-unassigned] [Bug 168299] [SOUP] Ensure a response MIME type when Content-Type is missing and sniffing not allowed

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 14 03:35:03 PST 2017


Sergio Villar Senin <svillar at igalia.com> changed:

           What    |Removed                     |Added
 Attachment #301481|review?                     |review+
              Flags|                            |

--- Comment #2 from Sergio Villar Senin <svillar at igalia.com> ---
Comment on attachment 301481
  --> https://bugs.webkit.org/attachment.cgi?id=301481

View in context: https://bugs.webkit.org/attachment.cgi?id=301481&action=review

> Source/WebKit2/NetworkProcess/soup/NetworkDataTaskSoup.cpp:334
> +        }

What about just adding

if (m_response.mimeType().isEmpty() && m_soupMessage->status_code != SOUP_STATUS_NOT_MODIFIED)

to the previous code? I prefer that option because it  clearly shows that the call to updateFromSoupMessage is unconditional.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170214/7b58495e/attachment.html>

More information about the webkit-unassigned mailing list