changeset 11115:908599063479

8213541: WebView does not handle HTTP response without ContentType Reviewed-by: mbilla, arajkumar
author shadzic
date Thu, 15 Nov 2018 11:51:05 +0530
parents f79cccd8514d
children 6859462e6792
files modules/javafx.web/src/main/native/Source/WebCore/platform/network/java/URLLoader.cpp
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/modules/javafx.web/src/main/native/Source/WebCore/platform/network/java/URLLoader.cpp	Wed Nov 14 13:02:37 2018 -0800
+++ b/modules/javafx.web/src/main/native/Source/WebCore/platform/network/java/URLLoader.cpp	Thu Nov 15 11:51:05 2018 +0530
@@ -419,12 +419,11 @@
         response.setHTTPStatusCode(status);
     }
 
-    // Fix for RT-13802: If the mime type is not specified
-    // and the expected content length is 0 or not specified,
+    // Fix for RT-13802: If the mime type is not specified,
     // set the mime type to "text/html" as e.g. the CF port
     // does
     String contentTypeString(env, contentType);
-    if (contentTypeString.isEmpty() && contentLength <= 0) {
+    if (contentTypeString.isEmpty()) {
         contentTypeString = "text/html";
     }
     if (!contentTypeString.isEmpty()) {