summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http_route.c
diff options
context:
space:
mode:
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,