From 09fc767bb0af70265923ada3bc811fe12e7308a6 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Mon, 13 Jun 2016 08:53:35 -0400 Subject: [PATCH] fix another typo --- HTTP.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HTTP.cpp b/HTTP.cpp index 451c099f..53115bda 100644 --- a/HTTP.cpp +++ b/HTTP.cpp @@ -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) {