Project

General

Profile

null_redirect.diff

patch on trunk @ 2009-10-18T16:15:00+0100 - qqqqq, 2009-10-18 15:17

View differences:

trunk/src/mod_redirect.c 2009-10-18 16:11:35.000000000 +0100
189 189
	buffer_copy_string_buffer(p->match_buf, con->request.uri);
190 190
	i = config_exec_pcre_keyvalue_buffer(con, p->conf.redirect, p->conf.context, p->match_buf, p->location);
191 191

  
192
	if (i >= 0) {
192
	if (i >= 0 && !buffer_is_empty(p->location)) {
193 193
		response_header_insert(srv, con, CONST_STR_LEN("Location"), CONST_BUF_LEN(p->location));
194 194

  
195 195
		con->http_status = p->conf.redirect_code > 99 && p->conf.redirect_code < 1000 ? p->conf.redirect_code : 301;