Skip to content

Commit d36ef71

Browse files
authored
fix: let empty but set title headers pass (#211)
Signed-off-by: Anupam Kumar <[email protected]>
1 parent be4ebb1 commit d36ef71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

context_chat_backend/controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ def _(sources: list[UploadFile]):
354354

355355
if not (
356356
value_of(source.headers.get('userIds'))
357-
and value_of(source.headers.get('title'))
357+
and source.headers.get('title', None) is not None
358358
and value_of(source.headers.get('type'))
359359
and value_of(source.headers.get('modified'))
360360
and source.headers['modified'].isdigit()

0 commit comments

Comments
 (0)