Project

General

Profile

Bug #1618 ยป 0001-Fix-accesslog-port-should-be-port-from-the-connecti.patch

stbuehler, 2008-04-01 11:28

View differences:

src/mod_accesslog.c
806 806
				buffer_append_string(b, "%");
807 807
				break;
808 808
			case FORMAT_SERVER_PORT:
809
				buffer_append_long(b, srv->srvconf.port);
809
				{
810
					char *colon = strchr(((server_socket*)(con->srv_socket))->srv_token->ptr, ':');
811
					if (colon) {
812
						buffer_append_string(b, colon+1);
813
					} else {
814
						buffer_append_long(b, srv->srvconf.port);
815
					}
816
				}
810 817
				break;
811 818
			case FORMAT_QUERY_STRING:
812 819
				buffer_append_string_buffer(b, con->uri.query);
813
- 
    (1-1/1)