gabrielfalcao/HTTPretty

Issuing multiple instances of same header

cwygoda opened this issue · 3 comments

Hi,

I'm trying to send some cookies using Set-Cookie header(s). The use of a dict for headers only allows me to set the same header once.
Using a comma-separated list of values doesn't get picked up by request's CookieJar correctly.

How would I either a) use the same header key multiple times or b) send cookies some other way?

Hi,

I've made a package that could be of help, see https://github.com/Ousret/kiss-headers

Hi,

I'm trying to send some cookies using Set-Cookie header(s). The use of a dict for headers only allows me to set the same header once.
Using a comma-separated list of values doesn't get picked up by request's CookieJar correctly.

How would I either a) use the same header key multiple times or b) send cookies some other way?

@cwygoda thanks for reporting this issue, I'll set time to work on this soon.

Hi,

I've made a package that could be of help, see https://github.com/Ousret/kiss-headers

Hi @Ousret, kiss-headers looks great. Brilliant idea, I hope to see web frameworks such as Django and Flask adopting it. I'll certainly give them a try and contemplate using them within HTTPretty.

Thanks for sharing.