summaryrefslogtreecommitdiff
path: root/ctx.c
diff options
context:
space:
mode:
Diffstat (limited to 'ctx.c')
-rw-r--r--ctx.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ctx.c b/ctx.c
index d2d7245..60b379e 100644
--- a/ctx.c
+++ b/ctx.c
@@ -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;
+}