D
D
Danil Tunev2020-11-23 17:54:08
HTTP headers
Danil Tunev, 2020-11-23 17:54:08

How to add one byte for alignment in http headers?

How to add one byte? Of course, it would be possible to add a space to the space in some header line, for example, "Content-Type: text/html\r\n". It seems to me that this is not entirely correct. Are there any common browser tricks? Or special characters according to rfc?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2020-11-23
@lada-guy

HTTP is a text protocol. No extra bytes for alignment are needed.
If you want to align in RAM, then just add the required amount of \0 to the end of the body

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question