1
0
mirror of https://github.com/stefanocasazza/ULib.git synced 2025-09-28 19:05:55 +08:00
ULib/tests/ulib/http2/rfc7541_6_1
stefanocasazza 329b3fbd64 sync
2016-12-22 15:54:12 +01:00

30 lines
490 B
Bash
Executable File

#!/bin/sh
#
# Written by Dridi Boukelmoune <dridi.boukelmoune@gmail.com>
#
# This file is in the public domain.
#
# 6.1. Indexed Header Field Representation
#
# [...]
#
# The index value of 0 is not used. It MUST be treated as a decoding
# error if found in an indexed header field representation.
. "$(dirname "$0")"/common.sh
_ ----------
_ Null index
_ ----------
mk_hex <<EOF
80
EOF
mk_enc <<EOF
indexed 0
EOF
tst_decode --expect-error IDX
tst_encode --expect-error IDX