diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-02-20 12:55:23 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-02-20 12:55:23 +0000 |
| commit | aee471e52c6f7ac06817600e2c21b400ef375ecb (patch) | |
| tree | 83d507c3279d5c7b25e8c8c882ffa9c5879e4d28 /src/HttpRequest.h | |
| parent | f1ee4045c247b37df62a566e67c2ba2715cda12a (diff) | |
2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
User-defined custom request headers specified by --header option
now override builtin headers if they have same name.
* src/HttpRequest.cc
* src/HttpRequest.h
* test/HttpRequestTest.cc
Diffstat (limited to 'src/HttpRequest.h')
| -rw-r--r-- | src/HttpRequest.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/HttpRequest.h b/src/HttpRequest.h index 2ba46a3f..56e9d245 100644 --- a/src/HttpRequest.h +++ b/src/HttpRequest.h @@ -40,6 +40,7 @@ #include <cassert> #include <string> #include <deque> +#include <vector> #include "SharedHandle.h" #include "Request.h" @@ -69,7 +70,7 @@ private: std::string userAgent; - std::deque<std::string> _headers; + std::vector<std::string> _headers; std::deque<std::string> _acceptTypes; @@ -85,7 +86,7 @@ private: bool _noCache; - std::string getProxyAuthString() const; + std::pair<std::string, std::string> getProxyAuthString() const; public: HttpRequest(); |
