summaryrefslogtreecommitdiff
path: root/src/HttpRequest.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-01-11 01:17:51 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-01-11 01:17:51 +0900
commitb6fd4366fece7a83e19973a40ed19e36b1dca92a (patch)
treebef92ab27b7ca394b14d9ca7e4321c2040e2b867 /src/HttpRequest.cc
parent9331f6a43d2178b0b718d8b81db81ea10b4d5d3b (diff)
Use short form of util::startsWith and util::endsWith
Diffstat (limited to 'src/HttpRequest.cc')
-rw-r--r--src/HttpRequest.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/HttpRequest.cc b/src/HttpRequest.cc
index 2b9ba982..d35acc96 100644
--- a/src/HttpRequest.cc
+++ b/src/HttpRequest.cc
@@ -248,8 +248,7 @@ std::string HttpRequest::createRequest()
std::vector<std::string>::const_iterator j = headers_.begin();
std::vector<std::string>::const_iterator jend = headers_.end();
for(; j != jend; ++j) {
- if(util::startsWith((*j).begin(), (*j).end(),
- (*i).first.begin(), (*i).first.end())) {
+ if(util::startsWith(*j, (*i).first)) {
break;
}
}