konnectors/libs

do not override userAgent requested by the user when using Cheerio

Closed this issue · 0 comments

edas commented

See https://github.com/konnectors/libs/blob/master/packages/cozy-konnector-libs/src/libs/request.js#L92

Expected

  • When I use cheerio in requestFactory but give no userAgent, libs is free to use any userAgent that is recommended by the team for this use case

  • When I use cheerio in requestFactory and ask for a specific userAgent, the request built should use the userAgent I requested and not another

Actual result

When I ask for my own userAgent and use Cheerio, libs rewrite the userAgent to be Firefox 36.