summaryrefslogtreecommitdiff
path: root/plugins/HTTPServer/src/HttpUser.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/HTTPServer/src/HttpUser.h')
-rw-r--r--plugins/HTTPServer/src/HttpUser.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/plugins/HTTPServer/src/HttpUser.h b/plugins/HTTPServer/src/HttpUser.h
index 00b43a76eb..d428391249 100644
--- a/plugins/HTTPServer/src/HttpUser.h
+++ b/plugins/HTTPServer/src/HttpUser.h
@@ -33,13 +33,13 @@ enum ENParamTypes {
eLastParam
};
-static char * szParmStr[eLastParam] = {
- "Range: ",
- "If-Range: ",
- "Unless-Modified-Since: ",
- "If-Modified-Since: ",
- "User-Agent: ",
- "Host: "
+static TCHAR * szParmStr[eLastParam] = {
+ _T("Range: "),
+ _T("If-Range: "),
+ _T("Unless-Modified-Since: "),
+ _T("If-Modified-Since: "),
+ _T("User-Agent: "),
+ _T("Host: ")
};
@@ -48,23 +48,23 @@ public:
CLHttpUser(HANDLE hCon, in_addr stAdd);
virtual ~CLHttpUser();
- bool bReadGetParameters(char * pszRequest);
+ bool bReadGetParameters(TCHAR *pszRequest);
//bool bSendFile( HANDLE hFile ,
bool bCloseTransfers() {
return true;
}
- bool bProcessGetRequest(char * pszRequest, bool bIsGetCommand);
- const char * pszCustomInfo() {
+ bool bProcessGetRequest(TCHAR *pszRequest, bool bIsGetCommand);
+ const TCHAR * pszCustomInfo() {
return apszParam[eUserAgent];
}
void HandleNewConnection();
private:
HANDLE hFile;
- char *apszParam[eLastParam];
+ TCHAR *apszParam[eLastParam];
- void SendError(int iErrorCode, const char * pszError, const char * pszDescription = NULL);
- void SendRedir(int iErrorCode, const char * pszError, const char * pszDescription = NULL, const char * pszRedirect = NULL);
+ void SendError(int iErrorCode, const TCHAR *pszError, const TCHAR *pszDescription = NULL);
+ void SendRedir(int iErrorCode, const TCHAR *pszError, const TCHAR *pszDescription = NULL, const TCHAR *pszRedirect = NULL);
};
#endif \ No newline at end of file