Subversion Repositories Tewi

Rev

Rev 16 | Rev 20 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 16 Rev 17
Line 1... Line 1...
1
/* $Id: http.c 16 2024-09-13 15:09:52Z nishi $ */
1
/* $Id: http.c 17 2024-09-13 17:41:07Z nishi $ */
2
 
2
 
3
#define SOURCE
3
#define SOURCE
4
 
4
 
5
#include "tw_http.h"
5
#include "tw_http.h"
6
 
6
 
Line 9... Line 9...
9
#include <cm_log.h>
9
#include <cm_log.h>
10
#include <cm_string.h>
10
#include <cm_string.h>
11
 
11
 
12
#include <stdbool.h>
12
#include <stdbool.h>
13
#include <stdlib.h>
13
#include <stdlib.h>
-
 
14
#include <string.h>
-
 
15
 
-
 
16
#ifdef __MINGW32__
-
 
17
#include <winsock2.h>
-
 
18
#else
14
#include <sys/socket.h>
19
#include <sys/select.h>
-
 
20
#endif
15
 
21
 
16
void tw_free_request(struct tw_http_request* req) {
22
void tw_free_request(struct tw_http_request* req) {
17
	if(req->method != NULL) free(req->method);
23
	if(req->method != NULL) free(req->method);
18
	if(req->path != NULL) free(req->path);
24
	if(req->path != NULL) free(req->path);
19
	if(req->headers != NULL) {
25
	if(req->headers != NULL) {