Moved most request errors check in Client

+ bugfix of "Bad file descriptor" due to empty operator=() in Client
+ added a condition in _determine_location_COOP_FIX()
+ udpate memo.txt
+ need fix for index/autoindex (location "/list" dont work)
This commit is contained in:
LuckyLaszlo
2022-08-10 07:19:05 +02:00
parent 58f67bf42e
commit 86f7740984
13 changed files with 134 additions and 118 deletions

View File

@@ -1,17 +1,17 @@
IN 42 SUBJECT, PRIORITY :
IN 42 SUBJECT AND/OR PRIORITY :
- CGI
- chunked request (response not mandatory it seems)
- index (default file directory)
- fix need for index and autoindex config
- Ecrire des tests !
- handle redirection (weird behavior, to fix)
- upload files with config "upload_repo"
- "root" need to replace "location->path" part of "client.path"
replace up to the last "/" of the "location->path" part
(if its a folder this will be in fact the entire path)
- handle redirection (Work, but weird behavior need deeper test)
- upload files with config "upload_dir"
- _determine_location() review (New version to complete and test)
- bug with verification of "redirect uri" (valid uri are rejected)
- replace atoi() with a better function to avoid overflow
like strtol : https://www32.cplusplus.com/reference/cstdlib/strtol/
-----------------------------
- autoindex (done, need test)
--------------
- replace atoi() with a better function
- 408 Request Timeout
- gerer le champ "Accept" du client
- gerer les ".." dans un URL (verifier que l'on ne sort pas du dossier "root")