 c937457738
			
		
	
	c937457738
	
	
	
		
			
			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.
		
			
				
	
	
		
			19 lines
		
	
	
		
			552 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			552 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
| # This CMake file locates the Jansson libraries and headers
 | |
| #
 | |
| # The following variables are set:
 | |
| # JANSSON_FOUND - If the Jansson library was found
 | |
| # JANSSON_LIBRARIES - Path to the static library
 | |
| # JANSSON_INCLUDE_DIR - Path to Jansson headers
 | |
| 
 | |
| find_path(JANSSON_INCLUDE_DIR jansson.h)
 | |
| 
 | |
| # Use the static library
 | |
| find_library(JANSSON_LIBRARIES NAMES libjansson.a)
 | |
| 
 | |
| if (JANSSON_INCLUDE_DIR AND JANSSON_LIBRARIES)
 | |
|   message(STATUS "Found Jansson: ${JANSSON_LIBRARIES}")
 | |
|   set(JANSSON_FOUND TRUE)
 | |
| else()
 | |
|   message(STATUS "Could not find Jansson")
 | |
| endif()
 |