Minor fixes in HTTP requests' headers handling