From: dbs Date: Fri, 29 Jan 2010 03:47:37 +0000 (+0000) Subject: Backport r1904 from trunk: Prevent WebKit?-based browsers (Chrome and Safari) from... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ec7b0192ba6037af72f5f143a817ca838ed30ee6;p=OpenSRF.git Backport r1904 from trunk: Prevent WebKit?-based browsers (Chrome and Safari) from requesting multipart git-svn-id: svn://svn.open-ils.org/OpenSRF/branches/rel_1_2@1910 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/javascript/opensrf_xhr.js b/src/javascript/opensrf_xhr.js index 8cace89..f69f4d3 100644 --- a/src/javascript/opensrf_xhr.js +++ b/src/javascript/opensrf_xhr.js @@ -49,8 +49,9 @@ OpenSRF.XHRequest.prototype.send = function() { } else { - if(!navigator.userAgent.match(/mozilla/i)) { - + /* Only Firefox supports multipart calls, but Safari / Chrome include + "Mozilla" in their user agent strings... sigh */ + if(!navigator.userAgent.match(/mozilla/i) || navigator.userAgent.match(/webkit/i)) { /* standard asynchronous call */ xreq.onreadystatechange = function() { if(xreq.readyState == 4)