From 323f74c43aecf9d2c5d82c9cff6376f277ce3854 Mon Sep 17 00:00:00 2001 From: hagen Date: Fri, 1 Jul 2016 00:00:00 +0000 Subject: [PATCH] * HTTP.cpp : fuck the "special cases", use nginx rewriting frontend or some --- HTTP.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/HTTP.cpp b/HTTP.cpp index 71d277de..76ab54ac 100644 --- a/HTTP.cpp +++ b/HTTP.cpp @@ -72,10 +72,6 @@ namespace http { bool URL::parse(const std::string& url) { std::size_t pos_p = 0; /* < current parse position */ std::size_t pos_c = 0; /* < work position */ - if (url.at(0) == '/' && url.find("/http://") == 0) { - /* special case for i2p.rocks inproxy */ - pos_p ++; - } if(url.at(0) != '/' || pos_p > 0) { /* schema */ pos_c = url.find("://");