summaryrefslogtreecommitdiff
path: root/src/Request.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-06-29 15:36:38 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-06-29 15:36:38 +0000
commitf36e1b34c2de59dabc206d54411681b42871284f (patch)
treeabeb74dbad8bfe2c7e0c0550ff4a2fb2cd357812 /src/Request.cc
parent570837b32591f6fb6335b1f9e5a5085bfd2ecf4c (diff)
2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed the bug that UTF-8 encoded URL is not URL-encoded properly. * src/Request.cc
Diffstat (limited to 'src/Request.cc')
-rw-r--r--src/Request.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Request.cc b/src/Request.cc
index 1cb9124b..0556b953 100644
--- a/src/Request.cc
+++ b/src/Request.cc
@@ -185,7 +185,7 @@ void Request::urlencode(std::string& result, const std::string& src) const
result = src+" ";
size_t index = lastIndex;
while(index-- > 0) {
- const char c = result[index];
+ const unsigned char c = result[index];
// '/' is not urlencoded because src is expected to be a path.
if(Util::shouldUrlencode(c)) {
if(c == '%') {