lizongze 1 سال پیش
والد
کامیت
38d78d7287
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,
-                                proxies=fpx, headers=request.to_dict.get('headers', response.headers))
+                                proxies=fpx, headers=request.to_dict.get('headers', None))
                             attachments[str(len(attachments) + 1)] = attachment
                 if attachments:
                     list_item.projectinfo = {"attachments": attachments}