Debugging for non-PDF PDF download

This commit is contained in:
Dan Stillman 2012-11-13 05:09:09 -05:00
parent ae39584c68
commit e6b4dde472

View file

@ -299,6 +299,7 @@ Zotero.Attachments = new function(){
Zotero.MIME.sniffForMIMEType(str) != 'application/pdf') {
Zotero.debug("Downloaded PDF did not have MIME type "
+ "'application/pdf' in Attachments.importFromURL()", 2);
Zotero.debug(str);
attachmentItem.erase();
return;
}