--- parser3/src/include/pa_common.h 2020/12/03 22:48:09 1.185 +++ parser3/src/include/pa_common.h 2020/12/15 17:10:30 1.188 @@ -1,14 +1,14 @@ /** @file Parser: commonly used functions. - Copyright (c) 2001-2017 Art. Lebedev Studio (http://www.artlebedev.com) + Copyright (c) 2001-2020 Art. Lebedev Studio (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ #ifndef PA_COMMON_H #define PA_COMMON_H -#define IDENT_PA_COMMON_H "$Id: pa_common.h,v 1.185 2020/12/03 22:48:09 moko Exp $" +#define IDENT_PA_COMMON_H "$Id: pa_common.h,v 1.188 2020/12/15 17:10:30 moko Exp $" #include "pa_string.h" #include "pa_hash.h" @@ -20,7 +20,6 @@ class Request; #define HTTP_STATUS_CAPITALIZED "Status" #define HTTP_CONTENT_LENGTH "content-length" -#define HTTP_CONTENT_LENGTH_CAPITALIZED "Content-Length" #define HTTP_CONTENT_TYPE "content-type" #define HTTP_CONTENT_TYPE_UPPER "CONTENT-TYPE" @@ -212,7 +211,7 @@ size_t stdout_write(const void *buf, siz void check_safe_mode(struct stat finfo, const String& file_spec, const char* fname); -int file_block_read(const int f, unsigned char* buffer, const size_t size); +ssize_t file_block_read(const int f, void* buffer, const size_t size); /** String related functions