From a183ca8661c4ffa7c863ef36aff018fb449a9035 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Mon, 13 Jun 2016 08:52:21 -0400 Subject: [PATCH] fix special case --- HTTP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HTTP.cpp b/HTTP.cpp index b4ba9940..1a79502c 100644 --- a/HTTP.cpp +++ b/HTTP.cpp @@ -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 ++; }