Skip to content

Commit

Permalink
Use hostname from HTTP header when constructing amber cache URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
jlicht committed Apr 9, 2015
1 parent 912bbab commit fe3c84c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ngx_http_amber_filter_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ ngx_http_amber_get_attribute(ngx_http_request_t *r,
static char *
ngx_http_amber_get_absolute_url(ngx_http_request_t *r, char *location) {

ngx_str_t server_name_variable_name = ngx_string("server_name");
ngx_str_t server_name_variable_name = ngx_string("host");
ngx_int_t server_name_hash = ngx_hash_key (server_name_variable_name.data, server_name_variable_name.len);
ngx_http_variable_value_t * server_name = ngx_http_get_variable(r, &server_name_variable_name, server_name_hash);

Expand Down

0 comments on commit fe3c84c

Please sign in to comment.