mev-rs icon indicating copy to clipboard operation
mev-rs copied to clipboard

getHeader 204 response sets incorrect content-type header

Open nflaig opened this issue 7 months ago • 0 comments

In case case mev-rs receives no bid from any builder it will respond with 204 status code to a getHeader, this is as expected but it also sets content-type and content-length header while response payload does not contain JSON data.

These are the headers in 204 response

'content-type': 'application/json',
'content-length': '114'

but as the status code 204 - No Content implies, it shouldn't be sending any content, nor set a content type header

nflaig avatar Jul 19 '24 18:07 nflaig