chore(lander): updated changelog
ci/woodpecker/push/build Pipeline was successful Details

lnm
Jef Roosens 2023-12-06 17:43:56 +01:00
parent 876e5a7de4
commit 8dc8ef8e2d
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
3 changed files with 15 additions and 8 deletions

View File

@ -7,10 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased](https://git.rustybever.be/Chewing_Bever/lander/src/branch/dev) ## [Unreleased](https://git.rustybever.be/Chewing_Bever/lander/src/branch/dev)
### Changed ### Added
* HTTP Loop * LNM - Lander Network Module
* Responses can now have an arbitrary number of headers * Rewrite of the event loop & HTTP loop
* Fully independent library
* Numerous improvements
* Streaming of headers
* Allow custom & an arbitrary number of response headers
* Better API for adding routes
* State machine HTTP loop
## [0.2.0](https://git.rustybever.be/Chewing_Bever/lander/src/tag/0.2.0) ## [0.2.0](https://git.rustybever.be/Chewing_Bever/lander/src/tag/0.2.0)

View File

@ -49,12 +49,13 @@ lnm_http_parse_err lnm_http_req_parse(lnm_http_req *req, char *buf,
req->query.len = path_len - (question_mark + 1 - path); req->query.len = path_len - (question_mark + 1 - path);
path_len = question_mark - path; path_len = question_mark - path;
// All parsed strings should be null-terminated. This character is either a
// newline (if at the end of the path), or a question mark (if a query is
// present).
path[path_len] = '\0';
} }
// All parsed strings should be null-terminated. This character is either a
// newline (if at the end of the path), or a question mark (if a query is
// present).
path[path_len] = '\0';
req->path.len = path_len; req->path.len = path_len;
req->path.s = path; req->path.s = path;
req->len = req_len; req->len = req_len;

View File

@ -2,8 +2,8 @@
#include <netinet/in.h> #include <netinet/in.h>
#include <poll.h> #include <poll.h>
#include <stdio.h> #include <stdio.h>
#include <unistd.h>
#include <string.h> #include <string.h>
#include <unistd.h>
#include "lnm/common.h" #include "lnm/common.h"
#include "lnm/loop_internal.h" #include "lnm/loop_internal.h"