kdzwinel / betwixt

:zap: Web Debugging Proxy based on Chrome DevTools Network panel.
MIT License
4.54k stars 125 forks source link

betwixt modify http header format #27

Closed fants closed 8 years ago

fants commented 8 years ago

my response http header:

set-cookie:dsid=EfhrHh; expires=Fri, 04-Dec-2015 03:43:54 GMT; Max-Age=86400; path=/ set-cookie:dlastact=1449114234; expires=Fri, 04-Dec-2015 03:43:54 GMT; Max-Age=86400; path=/ set-cookie:dreg=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/ set-cookie:dcloudstatpost=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/

after betwixt proxy:

set-cookie:dsid=EfhrHh; expires=Fri, 04-Dec-2015 03:43:54 GMT; Max-Age=86400; path=/dlastact=1449114234; expires=Fri, 04-Dec-2015 03:43:54 GMT; Max-Age=86400; path=/dreg=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/dcloudstatpost=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/

So the cookie does not work

kdzwinel commented 8 years ago

Thanks for reporting. I suspect it's a http-proxy package issue as betwixt itself doesn't modify responses. I'll try to debug that.

kdzwinel commented 8 years ago

Turns out it was my error. It's fixed now, thanks again for reporting.