Index: pdf/out_of_process_instance.cc |
diff --git a/pdf/out_of_process_instance.cc b/pdf/out_of_process_instance.cc |
index ad1c656eef6f927fc00050b2e204efbc8333e4e8..49b14ee1c9e913680da93394bccd107011c0aed1 100644 |
--- a/pdf/out_of_process_instance.cc |
+++ b/pdf/out_of_process_instance.cc |
@@ -316,6 +316,12 @@ bool OutOfProcessInstance::Init(uint32_t argc, |
headers = argv[i]; |
} |
+ // TODO(raymes): This is a hack to ensure that if no headers are passed in |
+ // then we get the right MIME type. When the in process plugin is removed we |
+ // can fix the document loader properly and remove this hack. |
+ if (!headers || strcmp(headers, "") == 0) |
+ headers = "content-type: application/pdf"; |
+ |
if (!original_url) |
return false; |