diff --git a/src/output-json-http.c b/src/output-json-http.c index b5a63bf294..bef5335f2d 100644 --- a/src/output-json-http.c +++ b/src/output-json-http.c @@ -327,7 +327,8 @@ void JsonHttpLogJSONExtended(json_t *js, htp_tx_t *tx) if (tx->response_status != NULL) { c = bstr_util_strdup_to_c(tx->response_status); if (c != NULL) { - json_object_set_new(js, "status", json_string(c)); + unsigned int val = strtoul(c, NULL, 10); + json_object_set_new(js, "status", json_integer(val)); SCFree(c); }