diff --git a/document_preview/document_preview.py b/document_preview/document_preview.py index acff8fd..9747667 100644 --- a/document_preview/document_preview.py +++ b/document_preview/document_preview.py @@ -68,7 +68,7 @@ def render_documents(self, request: Request, max_pages=1): # Render EML as PNG # If we have internet access, we'll attempt to load external images eml2image(file_contents, self.working_directory, self.log, - load_ext_images=self.service_attributes.docker_config.allow_internet_access, + load_ext_images=self.has_internet_access, load_images=request.get_param('load_email_images')) # HTML elif request.file_type == "code/html" and self.has_internet_access: