lizongze преди 1 година
родител
ревизия
1dea793d47
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      FworkSpider/feapder/templates/detail_template.tmpl

+ 1 - 1
FworkSpider/feapder/templates/detail_template.tmpl

@@ -86,7 +86,7 @@ class Details(feapder.BiddingDetailSpider):
                         if file_type in files_info.get("files_type") and files_info.get("url_key") in file_url:
                             attachment = AttachmentDownloader().fetch_attachment(
                                 file_name=file_name, file_type=file_type, download_url=file_url,
-                                enable_proxy=False, proxies=fpx)
+                                proxies=fpx, headers=request.to_dict.get('headers', response.headers))
                             attachments[str(len(attachments) + 1)] = attachment
                 if attachments:
                     list_item.projectinfo = {"attachments": attachments}