nxt_router.c (416:2101db5383a7) nxt_router.c (417:47366bb40f2c)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) Valentin V. Bartenev
5 * Copyright (C) NGINX, Inc.
6 */
7
8#include <nxt_router.h>

--- 3313 unchanged lines hidden (view full) ---

3322 NXT_WRITE(&r->remote);
3323 NXT_WRITE(&r->local);
3324
3325 NXT_WRITE(&h->host);
3326 NXT_WRITE(&h->content_type);
3327 NXT_WRITE(&h->content_length);
3328
3329 nxt_list_each(field, h->fields) {
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) Valentin V. Bartenev
5 * Copyright (C) NGINX, Inc.
6 */
7
8#include <nxt_router.h>

--- 3313 unchanged lines hidden (view full) ---

3322 NXT_WRITE(&r->remote);
3323 NXT_WRITE(&r->local);
3324
3325 NXT_WRITE(&h->host);
3326 NXT_WRITE(&h->content_type);
3327 NXT_WRITE(&h->content_length);
3328
3329 nxt_list_each(field, h->fields) {
3330 RC(nxt_app_msg_write_prefixed_upcase(task, wmsg,
3331 &prefix, &field->name));
3332 NXT_WRITE(&field->value);
3330 RC(nxt_app_msg_write_prefixed_upcase(task, wmsg, &prefix, field->name,
3331 field->name_length));
3332 RC(nxt_app_msg_write(task, wmsg, field->value, field->value_length));
3333
3334 } nxt_list_loop;
3335
3336 /* end-of-headers mark */
3337 NXT_WRITE(&eof);
3338
3339 RC(nxt_app_msg_write_size(task, wmsg, r->body.preread_size));
3340

--- 85 unchanged lines hidden (view full) ---

3426 if (method_is_post) {
3427 for(b = r->body.buf; b != NULL; b = b->next) {
3428 RC(nxt_app_msg_write_raw(task, wmsg, b->mem.pos,
3429 nxt_buf_mem_used_size(&b->mem)));
3430 }
3431 }
3432
3433 nxt_list_each(field, h->fields) {
3333
3334 } nxt_list_loop;
3335
3336 /* end-of-headers mark */
3337 NXT_WRITE(&eof);
3338
3339 RC(nxt_app_msg_write_size(task, wmsg, r->body.preread_size));
3340

--- 85 unchanged lines hidden (view full) ---

3426 if (method_is_post) {
3427 for(b = r->body.buf; b != NULL; b = b->next) {
3428 RC(nxt_app_msg_write_raw(task, wmsg, b->mem.pos,
3429 nxt_buf_mem_used_size(&b->mem)));
3430 }
3431 }
3432
3433 nxt_list_each(field, h->fields) {
3434 RC(nxt_app_msg_write_prefixed_upcase(task, wmsg,
3435 &prefix, &field->name));
3436 NXT_WRITE(&field->value);
3434 RC(nxt_app_msg_write_prefixed_upcase(task, wmsg, &prefix, field->name,
3435 field->name_length));
3436 RC(nxt_app_msg_write(task, wmsg, field->value, field->value_length));
3437
3438 } nxt_list_loop;
3439
3440 /* end-of-headers mark */
3441 NXT_WRITE(&eof);
3442
3443 if (!method_is_post) {
3444 for(b = r->body.buf; b != NULL; b = b->next) {

--- 61 unchanged lines hidden (view full) ---

3506 NXT_WRITE(&h->host);
3507 NXT_WRITE(&h->cookie);
3508 NXT_WRITE(&h->content_type);
3509 NXT_WRITE(&h->content_length);
3510
3511 RC(nxt_app_msg_write_size(task, wmsg, h->parsed_content_length));
3512
3513 nxt_list_each(field, h->fields) {
3437
3438 } nxt_list_loop;
3439
3440 /* end-of-headers mark */
3441 NXT_WRITE(&eof);
3442
3443 if (!method_is_post) {
3444 for(b = r->body.buf; b != NULL; b = b->next) {

--- 61 unchanged lines hidden (view full) ---

3506 NXT_WRITE(&h->host);
3507 NXT_WRITE(&h->cookie);
3508 NXT_WRITE(&h->content_type);
3509 NXT_WRITE(&h->content_length);
3510
3511 RC(nxt_app_msg_write_size(task, wmsg, h->parsed_content_length));
3512
3513 nxt_list_each(field, h->fields) {
3514 NXT_WRITE(&field->name);
3515 NXT_WRITE(&field->value);
3514 RC(nxt_app_msg_write(task, wmsg, field->name, field->name_length));
3515 RC(nxt_app_msg_write(task, wmsg, field->value, field->value_length));
3516
3517 } nxt_list_loop;
3518
3519 /* end-of-headers mark */
3520 NXT_WRITE(&eof);
3521
3522 RC(nxt_app_msg_write_size(task, wmsg, r->body.preread_size));
3523

--- 211 unchanged lines hidden ---
3516
3517 } nxt_list_loop;
3518
3519 /* end-of-headers mark */
3520 NXT_WRITE(&eof);
3521
3522 RC(nxt_app_msg_write_size(task, wmsg, r->body.preread_size));
3523

--- 211 unchanged lines hidden ---