AmadeusITGroup / kassette

kassette is a development server, used mainly for testing, which proxies requests and is able to easily manage local mocks.
MIT License
9 stars 15 forks source link

fix: better report header error with JSON.stringify #346

Closed divdavem closed 2 years ago

divdavem commented 2 years ago

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.

fbasso commented 2 years ago

Fine for me !

divdavem commented 2 years ago

@fbasso Thank you for your review!