mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
Merge branch 'transport_failsafe' into restricted_routes
This commit is contained in:
6
HTTP.cpp
6
HTTP.cpp
@@ -72,7 +72,11 @@ 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) != '/') {
|
||||
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("://");
|
||||
if (pos_c != std::string::npos) {
|
||||
|
||||
Reference in New Issue
Block a user