diff --git a/src/http/ngx_http_variables.c b/src/http/ngx_http_variables.c
index 2deb9689..261117f1 100644
|
a
|
b
|
ngx_http_variable_scheme(ngx_http_request_t *r,
|
| 1422 | 1422 | { |
| 1423 | 1423 | #if (NGX_HTTP_SSL) |
| 1424 | 1424 | |
| 1425 | | if (r->connection->ssl) { |
| | 1425 | if (r->schema_end == r->schema_start + 5) { |
| 1426 | 1426 | v->len = sizeof("https") - 1; |
| 1427 | 1427 | v->valid = 1; |
| 1428 | 1428 | v->no_cacheable = 0; |
| … |
… |
ngx_http_variable_https(ngx_http_request_t *r,
|
| 1450 | 1450 | { |
| 1451 | 1451 | #if (NGX_HTTP_SSL) |
| 1452 | 1452 | |
| 1453 | | if (r->connection->ssl) { |
| | 1453 | if (r->schema_end == r->schema_start + 5) { |
| 1454 | 1454 | v->len = sizeof("on") - 1; |
| 1455 | 1455 | v->valid = 1; |
| 1456 | 1456 | v->no_cacheable = 0; |