You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pre v1.2.0 returned text/plain and nil error for empty inputs (same behavior as stdlib http.DetectContentType)
post v1.2.0 returns application/octet-stream and EOF error for empty inputs.
Before v1.2.0, DetectReader returned text/plain for empty inputs.
After v1.2.0, it started returning EOF error.
This commit changes DetectReader behaviour to how it was before v1.2.0
Before v1.2.0, DetectReader returned text/plain for empty inputs.
After v1.2.0, it started returning EOF error.
This commit changes DetectReader behavior to how it was before v1.2.0
pre v1.2.0 returned
text/plain
and nil error for empty inputs (same behavior as stdlib http.DetectContentType)post v1.2.0 returns
application/octet-stream
andEOF
error for empty inputs.related: ipfs/kubo#8230
offending change: b1ae8bf#diff-cf06cf150d88adb18fa7da76b698e820f978ae9b6c547b3530305051e6687459L44
The text was updated successfully, but these errors were encountered: