summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nxt_http_route.c4
-rw-r--r--src/nxt_router.c4
2 files changed, 2 insertions, 6 deletions
diff --git a/src/nxt_http_route.c b/src/nxt_http_route.c
index ad2129e7..b2df000f 100644
--- a/src/nxt_http_route.c
+++ b/src/nxt_http_route.c
@@ -2008,10 +2008,6 @@ nxt_http_route_arguments(nxt_http_request_t *r, nxt_http_route_rule_t *rule)
{
nxt_array_t *arguments;
- if (r->args == NULL) {
- return 0;
- }
-
arguments = nxt_http_route_arguments_parse(r);
if (nxt_slow_path(arguments == NULL)) {
return -1;
diff --git a/src/nxt_router.c b/src/nxt_router.c
index 9317d752..1dd7f8e5 100644
--- a/src/nxt_router.c
+++ b/src/nxt_router.c
@@ -5453,8 +5453,8 @@ nxt_router_prepare_msg(nxt_task_t *task, nxt_http_request_t *r,
*p++ = '\0';
}
- req->query_length = r->args != NULL ? (uint32_t) r->args->length : 0;
- if (r->args != NULL && r->args->start != NULL) {
+ req->query_length = (uint32_t) r->args->length;
+ if (r->args->start != NULL) {
query_pos = nxt_pointer_to(target_pos,
r->args->start - r->target.start);