The HTTP scheme encoding was open-coded with a HPACK byte matching the
"https" scheme. Let's make use of the new functions to avoid this.
}
/* encode the scheme which is always "https" (or 0x86 for "http") */
- if (outbuf.data < outbuf.size)
- outbuf.area[outbuf.data++] = 0x87; // indexed field : idx[02]=(":scheme", "https")
+ if (!hpack_encode_scheme(&outbuf, ist("https"))) {
+ /* output full */
+ if (b_space_wraps(&h2c->mbuf))
+ goto realign_again;
+ goto full;
+ }
/* encode the path, which necessarily is the second one */
if (outbuf.data < outbuf.size && isteq(path, ist("/"))) {