* HTTP Proxy: Don't send redirect for POST (thx kytv)

This commit is contained in:
zzz
2011-05-31 15:57:39 +00:00
parent 43ba27126c
commit 4ecacc7607
3 changed files with 6 additions and 2 deletions

View File

@@ -811,7 +811,8 @@ public class I2PTunnelHTTPClient extends I2PTunnelHTTPClientBase implements Runn
// Redirect to non-addresshelper URL to not clog the browser address bar
// and not pass the parameter to the eepsite.
// This also prevents the not-found error page from looking bad
if (ahelperPresent) {
// Syndie can't handle a redirect of a POST
if (ahelperPresent && !"POST".equals(method)) {
String uri = protocol + targetRequest;
int spc = uri.indexOf(" ");
if (spc >= 0)