www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit c06dd16ffac38c77090a5e2f888bf0765496bef3
parent 4d7bca4f439ccc11eae201a97b1cc8cefbff06a1
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri, 31 Oct 2008 19:46:10 +0000

Fix web-based installation of non-small styles


Diffstat:
Mchrome/content/zotero/xpcom/mimeTypeHandler.js | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/chrome/content/zotero/xpcom/mimeTypeHandler.js b/chrome/content/zotero/xpcom/mimeTypeHandler.js @@ -150,6 +150,7 @@ Zotero.MIMETypeHandler = new function () { this._request = request; this._contentType = contentType this._storageStream = null; + this._outputStream = null; this._binaryInputStream = null; } @@ -182,6 +183,7 @@ Zotero.MIMETypeHandler = new function () { this._storageStream = Components.classes["@mozilla.org/storagestream;1"]. createInstance(Components.interfaces.nsIStorageStream); this._storageStream.init(4096, 4294967295, null); // PR_UINT32_MAX + this._outputStream = this._storageStream.getOutputStream(0); this._binaryInputStream = Components.classes["@mozilla.org/binaryinputstream;1"]. createInstance(Components.interfaces.nsIBinaryInputStream); @@ -189,8 +191,7 @@ Zotero.MIMETypeHandler = new function () { } var bytes = this._binaryInputStream.readBytes(count); - var outputStream = this._storageStream.getOutputStream(0); - outputStream.write(bytes, count); + this._outputStream.write(bytes, count); } /**