Add 1st Real Rest Test.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -2,7 +2,7 @@ cmake_minimum_required (VERSION 3.0)
|
||||
|
||||
project (librestd)
|
||||
|
||||
add_definitions (-DBUILD_DEBUG)
|
||||
add_definitions (-g -DBUILD_DEBUG)
|
||||
|
||||
include_directories (${CMAKE_SOURCE_DIR}/../libevent/include)
|
||||
include_directories (${CMAKE_BINARY_DIR}/libevent/include)
|
||||
|
||||
@@ -341,6 +341,9 @@ size_t restd_http_response(restd_conn_t *conn, int code, const char *contenttype
|
||||
const void *data, off_t size)
|
||||
{
|
||||
restd_http_t *http = (restd_http_t *)restd_conn_get_extra(conn);
|
||||
// Sanity Check
|
||||
if (http == NULL)
|
||||
return -1;
|
||||
if (http->response.frozen_header)
|
||||
{
|
||||
return 0;
|
||||
|
||||
@@ -536,7 +536,7 @@ static restd_conn_t *conn_new(restd_server_t *server, struct bufferevent *buffer
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
printf("conn_new\n");
|
||||
|
||||
// Create a new connection container.
|
||||
restd_conn_t *conn = NEW_OBJECT(restd_conn_t);
|
||||
if (conn == NULL)
|
||||
|
||||
Reference in New Issue
Block a user