mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-02 11:04:00 +01:00
* HTTP.cpp : fuck the "special cases", use nginx rewriting frontend or some
This commit is contained in:
parent
16af8e082b
commit
323f74c43a
4
HTTP.cpp
4
HTTP.cpp
|
@ -72,10 +72,6 @@ namespace http {
|
||||||
bool URL::parse(const std::string& url) {
|
bool URL::parse(const std::string& url) {
|
||||||
std::size_t pos_p = 0; /* < current parse position */
|
std::size_t pos_p = 0; /* < current parse position */
|
||||||
std::size_t pos_c = 0; /* < work 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) {
|
if(url.at(0) != '/' || pos_p > 0) {
|
||||||
/* schema */
|
/* schema */
|
||||||
pos_c = url.find("://");
|
pos_c = url.find("://");
|
||||||
|
|
Loading…
Reference in a new issue