summaryrefslogtreecommitdiff
path: root/src/Util.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2007-11-11 04:25:56 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2007-11-11 04:25:56 +0000
commit4f59dc84bfa4be6e5fcea98b5f8775ddf7764dfa (patch)
treef3849f574aa84350156abab8b00c8e713d2bf3b4 /src/Util.h
parentb5ad00980918777cb701420b151e9c4c81e43757 (diff)
2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
urlencode the given url inside Request::parseUrl(...) * src/Request.{h, cc} * src/Util.{h, cc} * test/RequestTest.cc Removed #!metalink3! notation support because it is deleted from the metalink specification. * src/Request.{h, cc} * test/RequestTest.cc
Diffstat (limited to 'src/Util.h')
-rw-r--r--src/Util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Util.h b/src/Util.h
index 1873566b..f49219fa 100644
--- a/src/Util.h
+++ b/src/Util.h
@@ -89,6 +89,8 @@ public:
return urlencode((const unsigned char*)target.c_str(), target.size());
}
+ static bool shouldUrlencode(const char c);
+
static string urldecode(const string& target);
static string torrentUrlencode(const unsigned char* target, int32_t len);