projects
/
pazpar2-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix handling of bad config
[pazpar2-moved-to-github.git]
/
src
/
http.c
diff --git
a/src/http.c
b/src/http.c
index
ee427fb
..
0e1c47b
100644
(file)
--- a/
src/http.c
+++ b/
src/http.c
@@
-66,7
+66,6
@@
typedef int socklen_t;
#include "eventl.h"
#include "pazpar2.h"
#include "http.h"
#include "eventl.h"
#include "pazpar2.h"
#include "http.h"
-#include "http_command.h"
#define MAX_HTTP_HEADER 4096
#define MAX_HTTP_HEADER 4096
@@
-75,8
+74,8
@@
static struct http_channel *http_create(const char *addr,
struct conf_server *server);
static void http_destroy(IOCHAN i);
struct conf_server *server);
static void http_destroy(IOCHAN i);
-static struct http_buf *http_buf_freelist = 0;
-static struct http_channel *http_channel_freelist = 0;
+static struct http_buf *http_buf_freelist = 0; /* thread pr */
+static struct http_channel *http_channel_freelist = 0; /* thread pr */
struct http_channel_observer_s {
void *data;
struct http_channel_observer_s {
void *data;
@@
-268,7
+267,7
@@
void http_addheader(struct http_response *r, const char *name, const char *value
r->headers = h;
}
r->headers = h;
}
-char *http_argbyname(struct http_request *r, char *name)
+const char *http_argbyname(struct http_request *r, const char *name)
{
struct http_argument *p;
if (!name)
{
struct http_argument *p;
if (!name)
@@
-279,7
+278,7
@@
char *http_argbyname(struct http_request *r, char *name)
return 0;
}
return 0;
}
-char *http_headerbyname(struct http_header *h, char *name)
+const char *http_headerbyname(struct http_header *h, const char *name)
{
for (; h; h = h->next)
if (!strcmp(h->name, name))
{
for (; h; h = h->next)
if (!strcmp(h->name, name))