You've already forked linux-packaging-mono
Imported Upstream version 5.16.0.100
Former-commit-id: 38faa55fb9669e35e7d8448b15c25dc447f25767
This commit is contained in:
parent
0a9828183b
commit
7d7f676260
@ -226,8 +226,9 @@ namespace System.IO.Packaging {
|
||||
var extension = Path.GetExtension (part.Uri.OriginalString);
|
||||
if (extension.Length > 0)
|
||||
extension = extension.Substring (1);
|
||||
|
||||
if (!mimes.TryGetValue (extension, out existingMimeType)) {
|
||||
|
||||
if (!mimes.TryGetValue (extension, out existingMimeType) && extension.Length != 0) {
|
||||
// we should only get here when we have an extension (non-empty string)
|
||||
node = doc.CreateNode (XmlNodeType.Element, "Default", ContentNamespace);
|
||||
|
||||
XmlAttribute ext = doc.CreateAttribute ("Extension");
|
||||
|
Reference in New Issue
Block a user