chore(lander): move a log line
ci/woodpecker/push/build Pipeline was successful Details
ci/woodpecker/push/docker Pipeline was successful Details

new-lnm-integration
Jef Roosens 2023-12-12 12:15:21 +01:00
parent 8e0477c34b
commit 89cc41f28a
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
2 changed files with 5 additions and 5 deletions

View File

@ -17,7 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* Allow custom & an arbitrary number of response headers
* Better API for adding routes
* State machine HTTP loop
* Auomatically support HEAD requests for all GET requests
* Automatically support HEAD requests for all GET requests
* Landerctl
* `-c` flag to use custom config file (useful for testing)

View File

@ -27,6 +27,10 @@ void lnm_http_loop_process_parse_req(lnm_http_conn *conn) {
case lnm_http_parse_err_ok:
conn->r.read += ctx->req.len;
ctx->state = lnm_http_loop_state_route;
lnm_linfo(section, "%s %.*s HTTP/1.%i",
lnm_http_method_names[ctx->req.method], (int)ctx->req.path.len,
ctx->req.path.s, ctx->req.minor_version);
break;
case lnm_http_parse_err_incomplete:
// If the request is already the size of the read buffer, we close the
@ -48,10 +52,6 @@ void lnm_http_loop_process_parse_req(lnm_http_conn *conn) {
ctx->state = lnm_http_loop_state_first_res;
break;
}
lnm_linfo(section, "%s %.*s HTTP/1.%i",
lnm_http_method_names[ctx->req.method], (int)ctx->req.path.len,
ctx->req.path.s, ctx->req.minor_version);
}
void lnm_http_loop_process_route(lnm_http_conn *conn) {