Skip to content
This repository was archived by the owner on Oct 31, 2021. It is now read-only.
This repository was archived by the owner on Oct 31, 2021. It is now read-only.

Does not work with current connect versions + Solution #6

@andywer

Description

@andywer

Reason: There is no require('connect').utils.serializeCookie() anymore.

Solution: Change the call require('connect').utils.serializeCookie(...) [Line 603] to serializeCookie(...) and declare the following function (taken from an old connect version):

var serializeCookie = function(name, val, obj){
    var pairs = [name + '=' + encodeURIComponent(val)],
        obj = obj || {};

    if (obj.domain) pairs.push('domain=' + obj.domain);
    if (obj.path) pairs.push('path=' + obj.path);
    if (obj.expires) pairs.push('expires=' + obj.expires.toUTCString());
    if (obj.httpOnly) pairs.push('httpOnly');
    if (obj.secure) pairs.push('secure');

    return pairs.join('; ');
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions