Wip chunked decoding

+ Need to test normal body parsing
+ path_is_valid() renamed eval_file_type()
+ replaced atoi with strtol/strtoul
This commit is contained in:
LuckyLaszlo
2022-08-12 05:50:00 +02:00
parent ab0bc2c4c0
commit 400efbe720
18 changed files with 185 additions and 82 deletions

View File

@@ -1,12 +1,16 @@
IN 42 SUBJECT AND/OR PRIORITY :
- CGI
- chunked request (response not mandatory it seems)
- Need to test normal body parsing
- Ecrire des tests !
- handle redirection (Work, but weird behavior need deeper test)
- upload files with config "upload_dir"
- _determine_location() review (New version to complete and test)
- replace atoi() with a better function to avoid overflow
like strtol : https://www32.cplusplus.com/reference/cstdlib/strtol/
- replace std::string::npos with macro NPOS ?
-----------------------------
Si ce n'est pas deja fait :
- dans config, check erreur si port > 16bits
(peut-être check si ip > 32bits)
-----------------------------
- gerer le champ "Accept" du client
- gerer les ".." dans un URL (verifier que l'on ne sort pas du dossier "root")