Browse Source

fix special case

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

2
HTTP.cpp

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

Loading…
Cancel
Save