Support older version of request where cookie jars are on by default o.O

This commit is contained in:
Rob 2016-03-03 15:46:34 -08:00
parent 47f3223be1
commit eeb6f8c5e9

View file

@ -8,6 +8,7 @@ authstr = new Buffer("#{config.picoCTF_auth.username}:#{config.picoCTF_auth.pass
papi = (url, req, cb) ->
request
url: "#{config.picoCTF_api_url}#{url}"
jar: false
headers:
Cookie: "flask=#{req.cookies.flask}"
Authorization: 'Basic ' + authstr