FastCGI working buggy

This commit is contained in:
2020-12-27 18:33:50 +01:00
parent 1429961e44
commit 885ec2226f
7 changed files with 641 additions and 30 deletions

View File

@ -156,7 +156,7 @@ int http_receive_request(sock *client, http_req *req) {
}
}
char *http_get_header_field(http_hdr *hdr, const char *field_name, int strict) {
char *http_get_header_field(const http_hdr *hdr, const char *field_name, int strict) {
size_t len = strlen(field_name);
char *_field_name = malloc(len + 1);
strcpy(_field_name, field_name);