1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-22 08:14:15 +00:00

fix special case

This commit is contained in:
Jeff Becker 2016-06-13 08:52:21 -04:00
parent 05939a2bbc
commit a183ca8661
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B

View File

@ -71,7 +71,7 @@ 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://") == url.begin()) {
if (url.at(0) == "/" && url.find("/http://") == 0) {
/* specical case */
pos_p ++;
}