瀏覽代碼

fix: add status_code 304 (#6000)

Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
Co-authored-by: crazywoola <427733928@qq.com>
tags/0.6.13
opriuwohg 1 年之前
父節點
當前提交
af98fd29bf
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      api/core/file/message_file_parser.py

+ 1
- 1
api/core/file/message_file_parser.py 查看文件

@@ -186,7 +186,7 @@ class MessageFileParser:
}

response = requests.head(url, headers=headers, allow_redirects=True)
if response.status_code == 200:
if response.status_code in {200, 304}:
return True, ""
else:
return False, "URL does not exist."

Loading…
取消
儲存