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
Update test1 to not use option -t.
[pazpar2-moved-to-github.git]
/
src
/
http.c
diff --git
a/src/http.c
b/src/http.c
index
87cb644
..
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
@@
-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))