summaryrefslogtreecommitdiffhomepage
path: root/src/test (follow)
AgeCommit message (Collapse)AuthorFilesLines
2019-09-17HTTP parser: fixed parsing of target after literal space character.Valentin Bartenev1-1/+14
In theory, all space characters in request target must be encoded; however, some clients may violate the specification. For the sake of interoperability, Unit supports unencoded space characters. Previously, if there was a space character before the extension or arguments parts, those parts weren't recognized. Also, quoted symbols and complex target weren't detected after a space character.
2019-09-16HTTP parser: removed unused "plus_in_target" flag.Valentin Bartenev1-20/+10
2019-09-16HTTP parser: removed unused "exten_start" and "args_start" fields.Valentin Bartenev1-16/+8
2019-08-20Introducing websocket support in router and libunit.Max Romanov2-0/+453
2018-11-15Fixed lvlhsh test on 64-bit big-endian systems.Valentin Bartenev1-1/+1
The nxt_murmur_hash2() generated 4-byte hash that was stored in uintptr_t, which was 8 bytes long on 64-bit systems. At each iteration, it took the previous key and hashed it again. The problem was that it took only the first 4 bytes of the key, and these 4 bytes were always zero on 64-bit big-endian system. That resulted in equal keys at each iteration. The bug was discovered on IBM/S390x.
2018-08-06Unit application library.Max Romanov1-0/+191
Library now used in all language modules. Old 'nxt_app_*' code removed. See src/test/nxt_unit_app_test.c for usage sample.
2018-07-03HTTP parser: relaxed checking of fields values.Valentin Bartenev1-1/+1
Allowing characters up to 0xFF doesn't conflict with RFC 7230. Particularly, this make it possible to pass unencoded UTF-8 data through HTTP headers, which can be useful.
2018-06-25Introduced nxt_length() macro.Valentin Bartenev1-2/+2
2018-04-05Style.Valentin Bartenev1-1/+1
2018-04-04Style: capitalized letters in hexadecimal literals.Valentin Bartenev3-25/+25
2018-03-29nxt_lvlhsh_each() refactoring and nxt_lvlhsh_each_init().Igor Sysoev1-2/+1
2018-03-29nxt_lvlhsh_retrieve().Igor Sysoev1-0/+37
2018-03-29nxt_lvlhsh_peek().Igor Sysoev1-2/+14
2018-03-15HTTP parser: allowing tabs in field values as per RFC 7230.Valentin Bartenev1-0/+24
2018-03-15HTTP parser: restricting allowed characters in fields values.Valentin Bartenev1-0/+18
According to RFC 7230 only printable 7-bit ASCII characters are allowed in field values.
2018-03-15HTTP parser: fixed parsing of field values ending with space.Valentin Bartenev1-0/+6
This closes #82 issue on GitHub.
2018-01-24Fixed formatting in nxt_sprintf() and logging.Sergey Kandaurov1-1/+1
2018-01-24Using size_t for the field width type of the "%*s" specifier.Sergey Kandaurov1-2/+3
2018-01-15Checking for major HTTP version.Valentin Bartenev1-0/+5
2018-01-15HTTP parser: improved error reporting.Valentin Bartenev1-11/+11
2018-01-09HTTP parser: allowing underscore in header field names.Valentin Bartenev1-1/+1
2017-12-25HTTP parser: reworked header fields handling.Valentin Bartenev1-28/+89
2017-11-21Tests: move existing tests to "src" folder.Andrey Zelenkov18-0/+3236