ledgetech / ledgetech/lua-resty-http

get_client_body_reader should add support for chunked request body

Open
#31 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
2.1k
Forks
630
PR merge metrics
No merged PRs in 30d

Description

Hi @pintsized

get_client_body_reader return nil for a chunked request body. it's because ngx.req.socket is not yet support chunked request body.

however,i think lua-resty-http should fix the case with ngx.req.read_body.

thanks.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with get_client_body_reader and the ngx.req.socket behavior described in the issue, then check how ngx.req.read_body could handle chunked request bodies. Done means get_client_body_reader no longer returns nil for a chunked request body.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, nginx
Domain
backend, networking
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.