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

Abierto Apto para principiantes
#2,394 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
72/100
Tipo de issue
Documentación
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
c, json

Línea de trabajo

Lee las decisiones de #2375 y #2391 y, después, revisa la sección 2 de docs/PRINCIPLES.md y la entrada http_post en docs/BUILTINS.md. Decide si los encabezados no vacíos mal formados deben documentarse como ignorados o como un error notificado, e indica el motivo. Actualiza docs/BUILTINS.md para especificar el comportamiento y añade una fila que incluya los tres textos de ejemplo; el trabajo estará terminado cuando la decisión y los ejemplos estén documentados.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
C
Estrellas
3
Forks
7
Merge medio
3 h 30 min
PR fusionados (30 d)
264

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de InauguralSystems/EigenScript

Todos los issues de InauguralSystems/EigenScript

Issues similares

Más issues de C

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.