mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-23 17:36:37 +02:00
fix another typo
This commit is contained in:
parent
ea7e6615f2
commit
09fc767bb0
1 changed files with 2 additions and 2 deletions
4
HTTP.cpp
4
HTTP.cpp
|
@ -71,11 +71,11 @@ 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) {
|
if (url.at(0) == '/' && url.find("/http://") == 0) {
|
||||||
/* specical case */
|
/* specical case */
|
||||||
pos_p ++;
|
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("://");
|
||||||
if (pos_c != std::string::npos) {
|
if (pos_c != std::string::npos) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue