Skip to content

httpc:request returns nil, nil on response with broken status line #241

@Invizory

Description

@Invizory

To reproduce the bug, run:

echo TEAPOT/1.1 | nc -lp 1337
local http = require "resty.http"
local httpc = http.new()
local res, err = httpc:request_uri("http://127.0.0.1:1337")
assert(res or err, "there must be either a result or an error")

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