aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rhbzpage.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-07-01 19:43:34 +0200
committerMatěj Cepl <mcepl@redhat.com>2010-07-01 19:43:34 +0200
commit7b4a2f872efd94954ce4c54d7d6471e105bc0e72 (patch)
tree1f07542cda889195de611d25826c35f19665caf1 /lib/rhbzpage.js
parent10ba5aaadd5c4f4bc5a769c2778ef26f952bb5a7 (diff)
downloadbugzilla-triage-7b4a2f872efd94954ce4c54d7d6471e105bc0e72.tar.gz
This Request object, not Require! Fixing #7
Diffstat (limited to 'lib/rhbzpage.js')
-rw-r--r--lib/rhbzpage.js10
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++;
};