diff --git a/Doxyfile b/Doxyfile index c0ed9fd4..9344f8ac 100644 --- a/Doxyfile +++ b/Doxyfile @@ -1,6 +1,6 @@ DOXYFILE_ENCODING = UTF-8 PROJECT_NAME = "tangle-accelerator" -PROJECT_NUMBER = 0.9.5 +PROJECT_NUMBER = 0.9.6 OUTPUT_DIRECTORY = docs/ OPTIMIZE_OUTPUT_FOR_C = YES INPUT = . \ diff --git a/accelerator/config.h b/accelerator/config.h index 1eb5fb40..43085555 100644 --- a/accelerator/config.h +++ b/accelerator/config.h @@ -37,7 +37,7 @@ extern "C" { /** @name tangle-accelerator configures */ /** @{ */ -#define TA_VERSION "tangle-accelerator/0.9.5" +#define TA_VERSION "tangle-accelerator/0.9.6" #define TA_HOST "localhost" #define TA_PORT 8000 #define SEED \ diff --git a/connectivity/http/http.c b/connectivity/http/http.c index 1c4a9268..c374ccfa 100644 --- a/connectivity/http/http.c +++ b/connectivity/http/http.c @@ -289,7 +289,7 @@ static int ta_http_header_iter(void *cls, enum MHD_ValueKind kind, const char *k ta_http_request_t *header = cls; if (0 == strncasecmp(MHD_HTTP_HEADER_CONTENT_TYPE, key, strlen(MHD_HTTP_HEADER_CONTENT_TYPE))) { - if (api_path_matcher(value, "application/json(;?\\s*charset=(UTF|utf)-8)?") == SC_OK) { + if (api_path_matcher(value, "application/json\\s*(;?\\s*charset\\s*=\\s*(UTF|utf)-8)?") == SC_OK) { header->valid_content_type = true; } else { header->valid_content_type = false;