Changeset 20439 in project


Ignore:
Timestamp:
09/21/10 20:19:45 (9 years ago)
Author:
sjamaan
Message:

http-client: Implement #395 (do not send user-agent when client-software is #f or empty). Reported by Mario Goulart

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release/4/http-client/trunk/http-client.scm

    r19246 r20439  
    164164              (host ,(cons (uri-host uri) (and (not (uri-default-port? uri))
    165165                                               (uri-port uri))))
    166               (user-agent ,(client-software)))))
     166              ,@(if (and (client-software) (not (null? (client-software))))
     167                    `((user-agent ,(client-software)))
     168                    '()))))
    167169    (update-request req
    168170                    headers: (headers h (request-headers req)))))
Note: See TracChangeset for help on using the changeset viewer.