Encoding fixes:

- base64 library renamed to encode library
- Moved urlencode/urldecode functions from HTTP library to encode library
- Moved hex/unhex functions from HTTP library to encode library
- Added urldecode support to RTMP urls, fixing XSplit wildcard stream support
This commit is contained in:
Thulinma 2016-04-14 12:03:40 +02:00
parent 15603bc053
commit 66dc2dc0cb
9 changed files with 197 additions and 174 deletions

View file

@ -37,8 +37,6 @@ namespace HTTP {
void Proxy(Socket::Connection & from, Socket::Connection & to);
void Clean();
void CleanPreserveHeaders();
static std::string urlunescape(const std::string & in);
static std::string urlencode(const std::string & in);
std::string body;
std::string method;
std::string url;
@ -59,8 +57,6 @@ namespace HTTP {
std::map<std::string, std::string> headers;
std::map<std::string, std::string> vars;
void Trim(std::string & s);
static int unhex(char c);
static std::string hex(char dec);
};
//HTTP::Parser class