Better handling of reading in the request headers