Fix includes

This commit is contained in:
2021-05-06 20:46:17 +02:00
parent 456deeae20
commit 7aa47cac61
5 changed files with 5 additions and 5 deletions

View File

@ -278,7 +278,7 @@ int fastcgi_header(fastcgi_conn *conn, http_res *res, char *err_msg) {
FCGI_Header header;
char *content;
unsigned short content_len, req_id;
int ret;
long ret;
int err = 0;
while (1) {
@ -372,7 +372,7 @@ int fastcgi_header(fastcgi_conn *conn, http_res *res, char *err_msg) {
}
ret = http_parse_header_field(&res->hdr, ptr, pos0);
if (ret != 0) return ret;
if (ret != 0) return (int) ret;
if (pos0[2] == '\r' && pos0[3] == '\n') {
return 0;
}

View File

@ -8,7 +8,6 @@
#include "http.h"
#include "utils.h"
#include "compress.h"
#include "../necronda-server.h"
#include <string.h>
void http_to_camel_case(char *str, int mode) {

View File

@ -29,6 +29,8 @@
#define HTTP_COLOR_WARNING "#E0C000"
#define HTTP_COLOR_ERROR "#C00000"
#define CLIENT_MAX_HEADER_SIZE 8192
#ifndef SERVER_STR
# define SERVER_STR "Necronda"
#endif

View File

@ -5,8 +5,8 @@
* Lorenz Stechauner, 2021-05-03
*/
#include "../necronda.h"
#include "http.h"
#include "utils.h"
const http_status http_statuses[] = {
{100, "Informational", "Continue"},

View File

@ -20,7 +20,6 @@
#define SERVER_TIMEOUT 4
#define CHUNK_SIZE 8192
#define CLIENT_MAX_HEADER_SIZE 8192
#ifndef DEFAULT_HOST
# define DEFAULT_HOST "www.necronda.net"