`http_post`: `headers` text with something after its JSON value now means no headers, without a word

オープン 初心者向け
#2,394 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
c, json

調査の方向性

#2375 と #2391 の決定事項を読み、その後 docs/PRINCIPLES.md のセクション 2 と docs/BUILTINS.md の http_post の項目を確認してください。不正な形式の空でないヘッダーを無視されるものとして記載するか、エラーとして報告されるものとして記載するかを、その理由とともに判断してください。docs/BUILTINS.md を更新して動作を明記し、3 つすべての例文を含む行を追加してください。判断と例が文書化されたら完了です。

索引モデルが issue の本文から書いたものです。

説明

area:http kind:silent-wrong

Before #2391, http_post read its headers text with a reader that took the beginning of the text. With #2391 it reads the text as json_decode does. Run on both builds with a listener that records the request (2026-11-17):

headers text sent at 5b93b236 sent at 614a0498 (#2391)
{"X-A": "1"} junk X-A: 1 no X-A
{"X-A": X-A: null no X-A
{"X-A": "1"} X-A: 1 X-A: 1

#2375 decides that the text is "read as json_decode reads it" and that "text that does not parse" means no headers, as an empty text does. So #2391 follows its bar. What the bar does not say is that this is a change for a text of the first two kinds: a request with a header the program wrote now goes out without it, and nothing tells the program.

Two ways to settle it:

  1. Keep it, and name it among the changes of http_post in docs/BUILTINS.md.
  2. Raise value for a headers text that is not empty and does not parse (docs/PRINCIPLES.md, section 2: no silent wrong answers). A caller with a broken text then gets an error where it gets a request without headers today.

Done when

  • One of the two is decided here, with the reason.
  • docs/BUILTINS.md says what http_post does with a headers text that does not parse, and a row fixes it for the three texts above.

Found by the blind review of #2391. It is not a fault of that change against its bar.

— Claude DevBox

主要言語
C
スター
3
フォーク
7
平均マージ
3時間 30分
マージ済み PR(30日)
264

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

InauguralSystems/EigenScript のほかの issue

InauguralSystems/EigenScript の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。