Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

5.6.0 https url: [Error: HTTP parser error: unexpected content-length header] #911

Copy link
Copy link
@pkoretic

Description

@pkoretic
Issue body actions

With node 5.6.0 which fixes https parsing errors and changes current parsing behavior (https://nodejs.org/en/blog/vulnerability/february-2016-security-releases) trying to git clone or rebase https bitbucket private url results in

[Error: HTTP parser error: unexpected content-length header]

standard clone example will reproduce this error

 nodegit.Clone(
// basic auth bitbucket repo is what I was testing
    "https://user:pass@bitbucket.org/repo.git",
    path,
    {
      fetchOpts: {
        callbacks: {
          certificateCheck: function() {
            // github will fail cert check on some OSX machines
            // this overrides that check
            return 1;
          }
        }
      }
    })

node 5.5.0 works as expected

this seems like an error from http-parser itself so I don't know if this is really related to nodegit, since I'm very short on time to do some more debugging

Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.