* 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 // Redirect to non-addresshelper URL to not clog the browser address bar
// and not pass the parameter to the eepsite. // and not pass the parameter to the eepsite.
// This also prevents the not-found error page from looking bad // 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; String uri = protocol + targetRequest;
int spc = uri.indexOf(" "); int spc = uri.indexOf(" ");
if (spc >= 0) if (spc >= 0)

View File

@@ -1,3 +1,6 @@
2011-05-31 zzz
* HTTP Proxy: Don't send redirect for POST (thx kytv)
2011-05-30 zzz 2011-05-30 zzz
* I2CP: * I2CP:
- Append I2CP Version information to the Get/Set Date Messages, - Append I2CP Version information to the Get/Set Date Messages,

View File

@@ -18,7 +18,7 @@ public class RouterVersion {
/** deprecated */ /** deprecated */
public final static String ID = "Monotone"; public final static String ID = "Monotone";
public final static String VERSION = CoreVersion.VERSION; public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 12; public final static long BUILD = 13;
/** for example "-test" */ /** for example "-test" */
public final static String EXTRA = ""; public final static String EXTRA = "";