Commits

tbrugz committed 2414a96

request: added 'method' parameter

Comments (0)

Files changed (1)

src/tbrugz/queryon/RequestSpec.java

 	final DumpSyntax outputSyntax;
 	
 	public RequestSpec(QueryOn qon, HttpServletRequest req, Properties prop) throws ServletException {
-		httpMethod = req.getMethod();
+		String method = req.getParameter("method");
+		//XXX: may method be changed? property?
+		if(method!=null) {
+			httpMethod = method;
+		}
+		else {
+			httpMethod = req.getMethod();
+		}
 		
 		String varUrl = req.getPathInfo();