Browse Source

fix another typo

pull/557/head
Jeff Becker 9 years ago
parent
commit
09fc767bb0
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B
  1. 4
      HTTP.cpp

4
HTTP.cpp

@ -71,11 +71,11 @@ namespace http { @@ -71,11 +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) == "/" && url.find("/http://") == 0) {
if (url.at(0) == '/' && url.find("/http://") == 0) {
/* specical case */
pos_p ++;
}
if(url.at(0) != "/" || pos_p > 0) {
if(url.at(0) != '/' || pos_p > 0) {
/* schema */
pos_c = url.find("://");
if (pos_c != std::string::npos) {

Loading…
Cancel
Save