From 4fb5dd7292cf62a438d31a2ddbd7d8951e03eaab Mon Sep 17 00:00:00 2001 From: Jim Radford Date: Sat, 9 May 2009 07:57:57 +0000 Subject: [PATCH] LIBOMV-527 Disable DEBUG_CAPS in GridProxy left on debugging issue git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2728 52acb1d6-8a22-11de-b505-999d5b087335 --- Programs/GridProxy/GridProxy.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Programs/GridProxy/GridProxy.cs b/Programs/GridProxy/GridProxy.cs index 72672521..21f2d017 100644 --- a/Programs/GridProxy/GridProxy.cs +++ b/Programs/GridProxy/GridProxy.cs @@ -31,7 +31,7 @@ */ // #define DEBUG_SEQUENCE -// #define DEBUG_CAPS +//#define DEBUG_CAPS // #define DEBUG_THREADS using System; @@ -708,6 +708,14 @@ namespace GridProxy capReq.RequestHeaders = req.Headers; req.Method = meth; + + // can't do gets on requests with a content body + // without throwing a protocol exception. So force it to post + // incase our parser stupidly set it to GET due to the viewer + // doing something stupid like sending an empty request + if(content.Length > 0) + req.Method = "POST"; + req.ContentLength = content.Length; HttpWebResponse resp;