Because some servers respond twice 'set-cookie' in the http header,
in line 244 of the httpclient.nim headers 'set-cookie' is overrided
result.headers[name] = line[linei.. ^1].strip()
maybe then:
result.headers.add(name, line[linei.. ^1].strip())
instead?