From 7b4a2f872efd94954ce4c54d7d6471e105bc0e72 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Thu, 1 Jul 2010 19:43:34 +0200 Subject: This Request object, not Require! Fixing #7 --- lib/rhbzpage.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'lib/rhbzpage.js') 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++; }; -- cgit