Files
nginx-unit/src/nxt_unit_field.h
Valentin Bartenev e929d08201 Fixed processing of SERVER_NAME after 77aad2c142a0.
Previously, the nxt_router_prepare_msg() function expected server host among
other headers unmodified.  It's not true anymore since normalization of the
Host header has been introduced in 77aad2c142a0.

The nxt_unit_split_host() function was removed.  It didn't work correctly with
IPv6 literals.  Anyway, after 77aad2c142a0 the port splitting is done in router
while Host header processing.
2019-02-27 17:25:07 +03:00

34 lines
629 B
C

/*
* Copyright (C) NGINX, Inc.
*/
#ifndef _NXT_UNIT_FIELD_H_INCLUDED_
#define _NXT_UNIT_FIELD_H_INCLUDED_
#include <inttypes.h>
#include "nxt_unit_sptr.h"
enum {
NXT_UNIT_HASH_CONTENT_LENGTH = 0x1EA0,
NXT_UNIT_HASH_CONTENT_TYPE = 0x5F7D,
NXT_UNIT_HASH_COOKIE = 0x23F2,
};
/* Name and Value field aka HTTP header. */
struct nxt_unit_field_s {
uint16_t hash;
uint8_t skip;
uint8_t name_length;
uint32_t value_length;
nxt_unit_sptr_t name;
nxt_unit_sptr_t value;
};
#endif /* _NXT_UNIT_FIELD_H_INCLUDED_ */