Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: print values
Signed-off-by: jupyterjazz <[email protected]>
  • Loading branch information
jupyterjazz committed Jun 26, 2023
commit 5591d3e13f0f897a13bf48a12c5eb1e52060ac4e
2 changes: 1 addition & 1 deletion docarray/typing/url/any_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def is_extension_allowed(cls, value: Any) -> bool:
if cls == AnyUrl: # no check for AnyUrl class
return True
mimetype, _ = mimetypes.guess_type(value.split("?")[0])
print('mimetype for value', mimetype, value)
print('mimetype for value', mimetype, value, value.split("?")[0])
if mimetype:
return mimetype.startswith(cls.mime_type())
else:
Expand Down