Skip to content
Closed
Changes from all commits
Commits
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
3 changes: 2 additions & 1 deletion FB2Library/Elements/BinaryItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ internal void Load(XElement binarye)
ContentType = ContentTypeEnum.ContentTypeGif;
break;
case "application/octet-stream": // something not detected , generated by various converters
default:
ContentType = ContentTypeEnum.ContentTypeUnknown; // TODO
break;
}

Expand All @@ -78,7 +80,6 @@ internal void Load(XElement binarye)
// // then we throw exception
// throw new Exception("Unknown image content type passed");
//}
ContentType = ContentTypeEnum.ContentTypeUnknown; // TODO
}

// private void DetectContentType(out ContentTypeEnum contentType, byte[] binaryData)
Expand Down