diff options
Diffstat (limited to 'lib/rhbzpage.js')
-rw-r--r-- | lib/rhbzpage.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/rhbzpage.js b/lib/rhbzpage.js index 17b852e..b778744 100644 --- a/lib/rhbzpage.js +++ b/lib/rhbzpage.js @@ -772,16 +772,14 @@ RHBugzillaPage.prototype.fixAttachById = function(id, type, email) { // https://bugzilla.redhat.com/\ // docs/en/html/api/extensions/compat_xmlrpc/code/webservice.html // test on https://bugzilla.redhat.com/show_bug.cgi?id=485145 - Require({ + Request({ url: this.XMLRPCurl, onComplete: function() { that.fixingMIMECallBack.call(that); }, - data: msg.xml(), - contentType: "text/xml", - }); -// util.httpPOST(this.XMLRPCurl, msg.xml(), this.fixingMIMECallBack, -// this, "text/xml", "text/xml"); + content: msg.xml(), + contentType: "text/xml" + }).post(); this.reqCounter++; }; |