Commit 69f393e0 authored by Frederic Logier's avatar Frederic Logier
Browse files

added ftpauth http api

parent b9dba437
...@@ -1406,10 +1406,10 @@ Api_ftpauth::Api_ftpauth(QString basedirectory, int port) : Zerogw(basedirectory ...@@ -1406,10 +1406,10 @@ Api_ftpauth::Api_ftpauth(QString basedirectory, int port) : Zerogw(basedirectory
{ {
std::cout << "Api_ftpauth::Api_ftpauth constructeur" << std::endl; std::cout << "Api_ftpauth::Api_ftpauth constructeur" << std::endl;
enumToZerogwHeaderSession.insert(0, HTTP_METHOD); enumToZerogwHeaderFtpauth.insert(0, HTTP_METHOD);
enumToZerogwHeaderSession.insert(1, URI); enumToZerogwHeaderFtpauth.insert(1, URI);
enumToZerogwHeaderSession.insert(2, X_user_email); enumToZerogwHeaderFtpauth.insert(2, X_user_email);
enumToZerogwHeaderSession.insert(3, X_user_password); enumToZerogwHeaderFtpauth.insert(3, X_user_password);
} }
...@@ -1445,7 +1445,7 @@ void Api_ftpauth::receive_http_payload() ...@@ -1445,7 +1445,7 @@ void Api_ftpauth::receive_http_payload()
switch(enumToZerogwHeaderSession[counter]) switch(enumToZerogwHeaderFtpauth[counter])
{ {
case HTTP_METHOD: case HTTP_METHOD:
// check METHOD // check METHOD
......
...@@ -67,6 +67,7 @@ enum ZerogwHeader { ...@@ -67,6 +67,7 @@ enum ZerogwHeader {
typedef QMap<int, ZerogwHeader> IntToZerogwHeaderPayload; typedef QMap<int, ZerogwHeader> IntToZerogwHeaderPayload;
typedef QMap<int, ZerogwHeader> IntToZerogwHeaderSession; typedef QMap<int, ZerogwHeader> IntToZerogwHeaderSession;
typedef QMap<int, ZerogwHeader> IntToZerogwHeaderApp; typedef QMap<int, ZerogwHeader> IntToZerogwHeaderApp;
typedef QMap<int, ZerogwHeader> IntToZerogwHeaderFtpauth;
...@@ -212,7 +213,7 @@ public: ...@@ -212,7 +213,7 @@ public:
Api_ftpauth(QString basedirectory, int port); Api_ftpauth(QString basedirectory, int port);
private: private:
IntToZerogwHeaderSession enumToZerogwHeaderSession; IntToZerogwHeaderFtpauth enumToZerogwHeaderFtpauth;
private slots: private slots:
void receive_http_payload(); void receive_http_payload();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment