Subversion Repositories Tewi

Rev

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

Rev 315 Rev 335
Line 1... Line 1...
1
/* $Id: http.c 315 2024-10-14 10:01:02Z nishi $ */
1
/* $Id: http.c 335 2024-10-14 18:06:21Z nishi $ */
2
 
2
 
3
#define SOURCE
3
#define SOURCE
4
 
4
 
5
#include "../config.h"
5
#include "../config.h"
6
 
6
 
Line 35... Line 35...
35
#include <net/poll.h>
35
#include <net/poll.h>
36
#else
36
#else
37
#include <poll.h>
37
#include <poll.h>
38
#endif
38
#endif
39
#else
39
#else
-
 
40
#ifndef __NeXT__
40
#include <sys/select.h>
41
#include <sys/select.h>
41
#endif
42
#endif
42
#endif
43
#endif
-
 
44
#endif
43
 
45
 
44
void tw_free_request(struct tw_http_request* req) {
46
void tw_free_request(struct tw_http_request* req) {
45
	if(req->method != NULL) free(req->method);
47
	if(req->method != NULL) free(req->method);
46
	if(req->path != NULL) free(req->path);
48
	if(req->path != NULL) free(req->path);
47
	if(req->query != NULL) free(req->query);
49
	if(req->query != NULL) free(req->query);