record user agent for each response (#217)