diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-11-11 23:00:41 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-11-11 23:00:41 +0900 |
| commit | 226480ad605cb9f7c4b5dbb0167f3fd67c8672ce (patch) | |
| tree | c1dcbfed6c6fbc797fe092ab148ada6f9d0c5c9f /src/HttpRequest.cc | |
| parent | d17ea2837b88f8d5e900fedc68b69de0600192d4 (diff) | |
Made const char[] static
Diffstat (limited to 'src/HttpRequest.cc')
| -rw-r--r-- | src/HttpRequest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/HttpRequest.cc b/src/HttpRequest.cc index 731952ea..a9262c39 100644 --- a/src/HttpRequest.cc +++ b/src/HttpRequest.cc @@ -441,8 +441,8 @@ bool HttpRequest::conditionalRequest() const if(!ifModSinceHeader_.empty()) { return true; } - const char A2_IF_MOD_SINCE[] = "if-modified-since"; - const char A2_IF_NONE_MATCH[] = "if-none-match"; + static const char A2_IF_MOD_SINCE[] = "if-modified-since"; + static const char A2_IF_NONE_MATCH[] = "if-none-match"; for(std::vector<std::string>::const_iterator i = headers_.begin(), eoi = headers_.end(); i != eoi; ++i) { std::string hd = util::toLower(*i); |
