Nuxeo mailing list archives
[Nuxeo-tickets] Re: [Nuxeo Repository] #1815: Mail composition page
is broken with Squid
Nuxeo Repository
trac at nuxeo.com
Thu Feb 22 00:22:30 CET 2007
#1815: Mail composition page is broken with Squid
---------------------------+------------------------------------------------
Reporter: gracinet | Owner: gracinet
Type: defect | Status: new
Priority: P2 | Milestone: CPS 3.4.4
Component: CPSMailAccess | Version: TRUNK
Severity: normal | Resolution:
Keywords: |
---------------------------+------------------------------------------------
Changes (by gracinet):
* owner: tziade => gracinet
Comment:
The following patch makes it work.
{{{
Index: Products/CPSMailAccess/www/cpsmailaccess.js
===================================================================
--- Products/CPSMailAccess/www/cpsmailaccess.js (revision 50904)
+++ Products/CPSMailAccess/www/cpsmailaccess.js (working copy)
@@ -806,9 +806,10 @@
{
url = "hasNotification";
xml.open("POST", url, false);
+ xml.setRequestHeader("Content-Type", "text/plain");
try
{
- xml.send(null);
+ xml.send("");
}
catch(err)
{
}}}
Bottom-line, at least on this version of Firefox, null produces no
Content-Length header whereas the empty string does. Squid claims that
Content-Length is required for POST, this is probably specified in RFC
2616.
Waiting for IE6 validation before commiting the change.
--
Ticket URL: <http://svn.nuxeo.org/trac/pub/ticket/1815>
Nuxeo Repository <http://www.cps-project.org/>
Nuxeo Repository
This list archive provided by Nuxeo, the
leaders of open source ECM.
Check out the Nuxeo 5 open source,
standards-based ECM project.