diff options
-rw-r--r-- | src/afb-hreq.h | 1 | ||||
-rw-r--r-- | src/afb-hsrv.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/afb-hreq.h b/src/afb-hreq.h index 81dd3eaf..3d7954a9 100644 --- a/src/afb-hreq.h +++ b/src/afb-hreq.h @@ -41,6 +41,7 @@ struct afb_hreq { int suspended; int replied; const char *version; + const char *lang; const char *url; size_t lenurl; const char *tail; diff --git a/src/afb-hsrv.c b/src/afb-hsrv.c index 12a7fdd3..9d838381 100644 --- a/src/afb-hsrv.c +++ b/src/afb-hsrv.c @@ -142,6 +142,7 @@ static int access_handler( hreq->connection = connection; hreq->method = method; hreq->version = version; + hreq->lang = afb_hreq_get_header(hreq, MHD_HTTP_HEADER_ACCEPT_LANGUAGE); hreq->tail = hreq->url = url; hreq->lentail = hreq->lenurl = strlen(url); *recordreq = hreq; |