Skip to content

Issue https #3

@martinlevesque

Description

@martinlevesque

Hi,

I think there is an issue with HTTPS.

In index.js, function getHostHeader, I had to changed it to:

_getHostHeader(data) {
    if (data[0] === 22) { //secure
      let route = this.routes.get(sni(data));

      if (route) { // here
        return sni(data); // here
      }

      return null; // here
    } else {
      let result = data.toString('utf8').match(/^(H|h)ost: (\[[^\]]*\]|[^ \:\r\n]+)/im);
      if (result) {
        return result[2];
      }
    }
  }

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