feat(lander): re-add Server header
This commit is contained in:
parent
cda61f5433
commit
4ae1355cec
4 changed files with 16 additions and 0 deletions
|
|
@ -7,6 +7,8 @@
|
|||
#include "lander.h"
|
||||
#include "log.h"
|
||||
|
||||
const char *lander_server = "lander/" LANDER_VERSION;
|
||||
|
||||
lnm_http_loop *loop_init(lander_gctx *gctx, const char *api_key) {
|
||||
lnm_http_loop *hl;
|
||||
lnm_http_step *step = NULL;
|
||||
|
|
@ -15,6 +17,7 @@ lnm_http_loop *loop_init(lander_gctx *gctx, const char *api_key) {
|
|||
(lnm_http_ctx_reset_fn)lander_ctx_reset,
|
||||
(lnm_http_ctx_free_fn)lander_ctx_free);
|
||||
lnm_http_loop_set_api_key(hl, api_key);
|
||||
lnm_http_loop_set_server(hl, lander_server);
|
||||
|
||||
lnm_http_step_init(&step, lander_get_index);
|
||||
lnm_http_route_init_literal(&route, lnm_http_method_get, "/", step);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue