Author: hqm
Date: 2008-02-28 05:41:54 -0800 (Thu, 28 Feb 2008)
New Revision: 8125
Modified:
openlaszlo/trunk/WEB-INF/lps/lfc/data/LzHTTPDataProvider.lzs
Log:
Change 20080228-hqm-s by [EMAIL PROTECTED] on 2008-02-28 08:40:54 EST
in /Users/hqm/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: fix for LPP-5368, trying again
New Features:
Bugs Fixed:
Technical Reviewer: andre (pending)
QA Reviewer: mkratt
Doc Reviewer:
Documentation:
Release Notes:
Details:
For SOLO POST requests, when post body is empty, force a value
(__lzbc__ timestamp) into the post body.
Tests:
see test2.zip, attached to bug report; make sure to runs test as a
SOLO app (lzproxied=false)
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/data/LzHTTPDataProvider.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/data/LzHTTPDataProvider.lzs
2008-02-28 12:16:27 UTC (rev 8124)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/data/LzHTTPDataProvider.lzs
2008-02-28 13:41:54 UTC (rev 8125)
@@ -144,17 +144,17 @@
sep = '&';
}
- // [LPP-5368] If this is a SOLO POST request, put the
- // 'cache-breaking' arg into this post body. This prevents
- // the case of an empty POST body, which would cause the
- // Flash player to turn it into a GET request.
- if (!proxied && (dreq.method == "POST") && !dreq.clientcacheable)
{
- q += cachebreak;
- }
-
postbody = q;
}
+ // [LPP-5368] If this is a SOLO POST request, with an empty
+ // POST body, put the 'cache-breaking' arg into this post
+ // body. This prevents the case of an empty POST body, which
+ // would cause the Flash player to turn it into a GET request.
+ if (!proxied && (dreq.method == "POST") && (postbody == null ||
postbody == '')) {
+ postbody = cachebreak;
+ }
+
var lzurl = new LzURL(dreq.src);
// For GET requests, merge in params data with URL query
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins