Fix double header HTTP error that occured after a few HTTP requests