explicitly set an 0 expiration limit for ysi, r=mconley,a=Standard8 bug 762245
authorDavid Bienvenu <bienvenu@nventure.com>
Wed, 06 Jun 2012 14:31:32 -0700
changeset 30808 afb461fe599735fb9f065f17cecc671d6ccef69b
parent 30807 2c8a2f8ff9d8a6cd9673eba104923c988a1067c5
child 30809 0c203b72f169476543598e29b74348fa3e166e1d
push id1
push userclokep@gmail.com
push dateMon, 07 May 2018 22:45:56 +0000
treeherdercomm-esr60@57eacde5ef40 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmconley, Standard8
bugs762245
explicitly set an 0 expiration limit for ysi, r=mconley,a=Standard8 bug 762245
mail/components/cloudfile/nsYouSendIt.js
--- a/mail/components/cloudfile/nsYouSendIt.js
+++ b/mail/components/cloudfile/nsYouSendIt.js
@@ -909,17 +909,17 @@ nsYouSendItFileUploader.prototype = {
    * Once the file is uploaded, if we want to get a sharing URL back, we have
    * to send a "commit" request - which this function does.
    */
   _commitSend: function nsYSIFU__commitSend() {
     let req = Cc["@mozilla.org/xmlextras/xmlhttprequest;1"]
                 .createInstance(Ci.nsIXMLHttpRequest);
     let resource = kItemCommitPath + "/" + this._urlInfo.itemId;
     // Not quite sure how we're going to not have expiration.
-    let args = "?sendEmailNotifications=false";  // &expiration=4000000
+    let args = "?sendEmailNotifications=false&expiration=0";  // &expiration=4000000
     let curDate = Date.now().toString();
 
     this.log.info("in commit send resource = " + resource);
 
     req.open("POST", gServerUrl + resource + args, true);
 
     req.onerror = function() {
       this.log.info("error in commit send");