Skip to content

Commit

Permalink
Fixed issue with port rewriting, fixes #21 and might help with #12.
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoffrey McRae committed Oct 29, 2014
1 parent f587a36 commit 37ce801
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions mod_rpaf.c
Expand Up @@ -417,11 +417,13 @@ static int rpaf_post_read_request(request_rec *r) {
}

if (!portvalue) {
header_port = NULL;
r->server->port = cfg->orig_port;
header_port = NULL;
r->parsed_uri.port = 0;
r->parsed_uri.port_str = NULL;
} else {
r->server->port = atoi(portvalue);
r->parsed_uri.port = r->server->port;
r->parsed_uri.port = atoi(portvalue);
r->parsed_uri.port_str = apr_pstrcat(r->pool, ":", portvalue, NULL);

}
}

Expand Down

0 comments on commit 37ce801

Please sign in to comment.