summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http_route.c
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2020-03-30 19:37:58 +0300
committerValentin Bartenev <vbart@nginx.com>2020-03-30 19:37:58 +0300
commit68c6b67ffc840c78eddd27a65e9bf1370aaf5631 (patch)
treee53b36a7d4f40976daf52fe7c644c2d311bbb83b /src/nxt_http_route.c
parent0935630cba069d6619e967404bb6c7c2a93fbe7e (diff)
downloadunit-68c6b67ffc840c78eddd27a65e9bf1370aaf5631.tar.gz
unit-68c6b67ffc840c78eddd27a65e9bf1370aaf5631.tar.bz2
Configuration: support for rational numbers.
Diffstat (limited to 'src/nxt_http_route.c')
-rw-r--r--src/nxt_http_route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_http_route.c b/src/nxt_http_route.c
index ee22f48d..ca43c060 100644
--- a/src/nxt_http_route.c
+++ b/src/nxt_http_route.c
@@ -630,7 +630,7 @@ nxt_http_route_action_create(nxt_router_temp_conf_t *tmcf, nxt_conf_value_t *cv,
if (accf.ret != NULL) {
action->handler = nxt_http_return_handler;
- action->u.return_code = nxt_conf_get_integer(accf.ret);
+ action->u.return_code = nxt_conf_get_number(accf.ret);
if (accf.location.length > 0) {
if (nxt_is_complex_uri_encoded(accf.location.start,