WordPress / WordPress/Requests

Chunked encoding isn't handled for file streaming

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

Nobody has claimed this yet.

Component: Transports Focus: File handling Status: triage Type: bug
Dominant language
PHP
Stars
3.6k
Forks
500
Avg merge
2d 21h
Merged PRs (30d)
5

Description

Accidentally introduced in #188, but that only exposed the underlying issue, as it switched fsockopen to HTTP/1.1.

Contributor guide

Open the contributing guide

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 by tracing file streaming through the fsockopen HTTP/1.1 path and review issue #188, which introduced the exposure. Reproduce a response using chunked encoding and verify that streamed files are handled correctly without relying on an unchunked response.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
networking
Issue type
Bug
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.