Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: add status_code 304 (#6000)

opriuwohgaf98fd29bf5f
diff --git a/api/core/file/message_file_parser.py b/api/core/file/message_file_parser.py
index 52498eb8711..842b539ad1b 100644
--- a/api/core/file/message_file_parser.py
+++ b/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."