"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/http_rules.c" between
haproxy-2.0.13.tar.gz and haproxy-2.0.14.tar.gz

About: HAProxy is a TCP/HTTP reverse proxy which is particularly suited for high availability environments. LTS (Long-Term Support) release.

http_rules.c  (haproxy-2.0.13):http_rules.c  (haproxy-2.0.14)
skipping to change at line 1039 skipping to change at line 1039
struct redirect_rule *http_parse_redirect_rule(const char *file, int linenum, st ruct proxy *curproxy, struct redirect_rule *http_parse_redirect_rule(const char *file, int linenum, st ruct proxy *curproxy,
const char **args, char **errmsg, int use_fmt, int dir) const char **args, char **errmsg, int use_fmt, int dir)
{ {
struct redirect_rule *rule; struct redirect_rule *rule;
int cur_arg; int cur_arg;
int type = REDIRECT_TYPE_NONE; int type = REDIRECT_TYPE_NONE;
int code = 302; int code = 302;
const char *destination = NULL; const char *destination = NULL;
const char *cookie = NULL; const char *cookie = NULL;
int cookie_set = 0; int cookie_set = 0;
unsigned int flags = REDIRECT_FLAG_NONE; unsigned int flags = (!dir ? REDIRECT_FLAG_FROM_REQ : REDIRECT_FLAG_NONE) ;
struct acl_cond *cond = NULL; struct acl_cond *cond = NULL;
cur_arg = 0; cur_arg = 0;
while (*(args[cur_arg])) { while (*(args[cur_arg])) {
if (strcmp(args[cur_arg], "location") == 0) { if (strcmp(args[cur_arg], "location") == 0) {
if (!*args[cur_arg + 1]) if (!*args[cur_arg + 1])
goto missing_arg; goto missing_arg;
type = REDIRECT_TYPE_LOCATION; type = REDIRECT_TYPE_LOCATION;
cur_arg++; cur_arg++;
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)