const char * const DATA_STRING = "data:";
const char * const BASE64_STRING = ";base64,";
const char * const BLANK_PAGE_URL = "about:blank";
+const char * const HTML_MIME = "text/html";
+const char * const PHP_MIME = "application/x-php";
}
Bundle::Bundle(WKBundleRef bundle) :
{
LogDebug("pageDecidePolicyForResponseCallback called");
- char const * const HTML_MIME = "text/html";
-
Assert(response);
WKStringRef contentTypeRef = WKURLResponseEflCopyContentType(response);
if (contentType == HTML_MIME)
{
LogDebug("Accepting HTML_MIME type");
-
+ return WKBundlePagePolicyActionUse;
+ }
+ if (contentType == PHP_MIME)
+ {
+ LogDebug("Accepting php type");
return WKBundlePagePolicyActionUse;
}