You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-commits@incubator.apache.org by jm...@apache.org on 2006/09/27 21:18:36 UTC
svn commit: r450584 - /incubator/xap/trunk/src/xap/util/HttpUtils.js
Author: jmargaris
Date: Wed Sep 27 14:18:35 2006
New Revision: 450584
URL: http://svn.apache.org/viewvc?view=rev&rev=450584
Log:
If the request has a request method set on it use it
Modified:
incubator/xap/trunk/src/xap/util/HttpUtils.js
Modified: incubator/xap/trunk/src/xap/util/HttpUtils.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/util/HttpUtils.js?view=diff&rev=450584&r1=450583&r2=450584
==============================================================================
--- incubator/xap/trunk/src/xap/util/HttpUtils.js (original)
+++ incubator/xap/trunk/src/xap/util/HttpUtils.js Wed Sep 27 14:18:35 2006
@@ -54,7 +54,7 @@
var request = xap.util.HttpUtils.createHttpRequest();
var isHttpRequestType = typeof url == "object" && url.constructor == xap.requestservice.HttpRequest;
if (isHttpRequestType) {
- request.open(type, url.getUri(), callback != null);
+ request.open(url.getRequestMethod() || type, url.getUri(), callback != null);
var headerNames = url.getHeaderNames();
for (var i = 0; i < headerNames.length; i++) {
var headerName = headerNames[i];