node-expose-sspi-strict
Version:
Expose the Microsoft Windows SSPI interface in order to do NTLM and Kerberos authentication.
16 lines (15 loc) • 516 B
JavaScript
;
exports.__esModule = true;
exports.parseCookies = void 0;
// https://stackoverflow.com/questions/3393854/get-and-set-a-single-cookie-with-node-js-http-server
function parseCookies(request) {
var list = {};
var rc = request.headers.cookie;
rc &&
rc.split(';').forEach(function (cookie) {
var parts = cookie.split('=');
list[parts.shift().trim()] = decodeURI(parts.join('='));
});
return list;
}
exports.parseCookies = parseCookies;