Handling of repeated user-agent and files without trailing carriage return