mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-29 13:27:59 +03:00
fix: endless loading for non txt files
This commit is contained in:
@@ -13,6 +13,7 @@ private:
|
||||
int _ret;
|
||||
int _row;
|
||||
unsigned int _contentLength;
|
||||
unsigned int _received;
|
||||
unsigned int _headerSize;
|
||||
|
||||
std::string _URI;
|
||||
@@ -24,6 +25,7 @@ private:
|
||||
std::string _fullURI;
|
||||
std::string _version;
|
||||
std::string _location;
|
||||
std::string _connection;
|
||||
std::map<std::string, std::string> _headerField;
|
||||
|
||||
ServerConfig *_config;
|
||||
@@ -39,10 +41,12 @@ public:
|
||||
std::string getFullUri(void);
|
||||
std::string getVersion(void);
|
||||
std::string getLocation(void);
|
||||
std::string getConnection(void);
|
||||
ServerConfig *getConfig(void);
|
||||
int getCode(void);
|
||||
unsigned int getContentLength(void) const;
|
||||
unsigned int getHeaderSize(void) const;
|
||||
unsigned int getRecved(void)const;
|
||||
std::map<std::string, std::string> getClientFields(void);
|
||||
bool getChunked(void);
|
||||
|
||||
@@ -71,6 +75,7 @@ public:
|
||||
void clear(void);
|
||||
void splitData(char *);
|
||||
|
||||
void increaseRecvCounter(unsigned int n);
|
||||
~Request();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user