From 3bcdfe41cb512dd324377edc3425377a34ef927e Mon Sep 17 00:00:00 2001 From: Stas Kelvich Date: Thu, 11 Aug 2011 14:18:04 +0400 Subject: [PATCH] force xml format in notifier.js requests. fixes 406 (Not Acceptable) error in browsers --- public/javascripts/notifier.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/javascripts/notifier.js b/public/javascripts/notifier.js index 59705cd..0aef2e9 100644 --- a/public/javascripts/notifier.js +++ b/public/javascripts/notifier.js @@ -30,7 +30,7 @@ var Errbit = { notify: function(error) { var xml = escape(Errbit.generateXML(error)); var host = Errbit.host || 'github.com/jdpace/errbit'; - var url = '//' + host + '/notifier_api/v2/notices?data=' + xml; + var url = '//' + host + '/notifier_api/v2/notices.xml?data=' + xml; var request = document.createElement('iframe'); request.style.width = '1px'; -- libgit2 0.21.2