Skip to content

code HPE_INVALID_METHOD  #7

@Gormartsen

Description

@Gormartsen
server.on('clientError', (err, socket) => {
    if (err.code === 'HPE_INVALID_METHOD')
        socket.end('HTTP/1.1 501 Not Implemented\r\n\r\n');
    else
        socket.end('HTTP/1.1 400 Bad Request\r\n\r\n');
});

For some reason request library send broken request with not detected METHOD

nodejs/node#6554 (comment)

Metadata

Metadata

Assignees

No one assigned

    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