diff options
Diffstat (limited to 'ctx.c')
-rw-r--r-- | ctx.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -112,6 +112,7 @@ static const fhp_ctx_t FHP_CTX_DEFAULT = { .body_type = FHP_BODY_TYPE_NONE, .content_length = 0, .num_tes = 0, + .content_type = FHP_CONTENT_TYPE_NONE, }; fhp_err_t @@ -884,3 +885,8 @@ uint64_t fhp_ctx_get_content_length(fhp_ctx_t * const ctx) { return ctx->content_length; } + +fhp_content_type_t +fhp_ctx_get_content_type(fhp_ctx_t * const ctx) { + return ctx->content_type; +} |