MXS-1220: Add request body parsing
The HTTP request body is expected to be a valid JSON object. All other requests are considered malformed requests and result in a HTTP 400 error. Added the Jansson license to the LICENSE-THIRDPARTY.TXT file. Imported some of the tests from the Jansson test suite to the HttpParser test.
This commit is contained in:

committed by
Markus Mäkelä

parent
4eb121ce35
commit
c937457738
@ -6,7 +6,9 @@
|
||||
# JANSSON_INCLUDE_DIR - Path to Jansson headers
|
||||
|
||||
find_path(JANSSON_INCLUDE_DIR jansson.h)
|
||||
find_library(JANSSON_LIBRARIES NAMES libjansson.so libjansson.a)
|
||||
|
||||
# Use the static library
|
||||
find_library(JANSSON_LIBRARIES NAMES libjansson.a)
|
||||
|
||||
if (JANSSON_INCLUDE_DIR AND JANSSON_LIBRARIES)
|
||||
message(STATUS "Found Jansson: ${JANSSON_LIBRARIES}")
|
||||
|
Reference in New Issue
Block a user