mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-13 04:46:38 +01:00
special case for i2p.rocks in proxy
This commit is contained in:
parent
543a372435
commit
05939a2bbc
1 changed files with 5 additions and 1 deletions
6
HTTP.cpp
6
HTTP.cpp
|
@ -71,7 +71,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://") == url.begin()) {
|
||||
/* specical case */
|
||||
pos_p ++;
|
||||
}
|
||||
if(url.at(0) != "/" || pos_b > 0) {
|
||||
/* schema */
|
||||
pos_c = url.find("://");
|
||||
if (pos_c != std::string::npos) {
|
||||
|
|
Loading…
Add table
Reference in a new issue