restify / restify/node-restify

res.send can't send 0, false and null

Open
#686 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug Question
Dominant language
JavaScript
Stars
10.7k
Forks
975
Avg merge
1d 6h
Merged PRs (30d)
5

Description

Sometimes it makes sence to send data in simple raw form like 0 or false, but Response.send ignores any falsy body.

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 locating the Response.send implementation referenced in the issue and inspect how it handles falsy bodies. Done means res.send can send 0, false, and null as raw response bodies while preserving existing behavior for other inputs.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
api, backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.