Using JSON.stringify better shows unexpected characters in headers. For example the "\u0001" character is invalid in a header but, depending on the terminal, it may not be easily visible when displaying it directly in the console, whereas it is always clearly visible when displaying it with JSON.stringify.
Using
JSON.stringify
better shows unexpected characters in headers. For example the"\u0001"
character is invalid in a header but, depending on the terminal, it may not be easily visible when displaying it directly in the console, whereas it is always clearly visible when displaying it withJSON.stringify
.