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
Added newer version of jquery (faster).
[pazpar2-moved-to-github.git]
/
src
/
http.c
diff --git
a/src/http.c
b/src/http.c
index
096d4e6
..
020e285
100644
(file)
--- a/
src/http.c
+++ b/
src/http.c
@@
-1,4
+1,4
@@
-/* $Id: http.c,v 1.25 2007-04-11 11:10:05 marc Exp $
+/* $Id: http.c,v 1.27 2007-04-16 09:03:25 adam Exp $
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
@@
-56,9
+56,6
@@
static void proxy_io(IOCHAN i, int event);
static struct http_channel *http_create(const char *addr);
static void http_destroy(IOCHAN i);
static struct http_channel *http_create(const char *addr);
static void http_destroy(IOCHAN i);
-extern IOCHAN channel_list;
-extern struct parameters global_parameters;
-
// If this is set, we proxy normal HTTP requests
static struct sockaddr_in *proxy_addr = 0;
static char proxy_url[256] = "";
// If this is set, we proxy normal HTTP requests
static struct sockaddr_in *proxy_addr = 0;
static char proxy_url[256] = "";
@@
-946,7
+943,7
@@
static struct http_channel *http_create(const char *addr)
yaz_log(YLOG_WARN, "Invalid HTTP forward address");
exit(1);
}
yaz_log(YLOG_WARN, "Invalid HTTP forward address");
exit(1);
}
- r->addr = nmem_strdup(r->nmem, addr);
+ strcpy(r->addr, addr);
return r;
}
return r;
}