QUERY_STRING should not contain a leading question mark (?)

Abierto
#229 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
c
Área
backend

Línea de trabajo

The issue defines the expected QUERY_STRING value and cites the Rook specification and RFC 3875. Locate the httpuv request-handling entry point that derives QUERY_STRING, then verify that a URL such as ?foo=bar produces foo=bar without the leading question mark.

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

Descripción

As per the title httpuv produces QUERY_STRING values containing the leading question mark of the form ?foo=bar where it should be foo=bar.

According to the documentation httpuv follows the Rook specification which states that "QUERY_STRING: The portion of the request URL that follows the ?, if any. [...]" [1]

Rook itself is modeled after CGI which also states that the question mark is not part of the query string and provides the following BNF syntax [2]:

   script-URI = <scheme> "://" <server-name> ":" <server-port>
                   <script-path> <extra-path> "?" <query-string>

The current behavior of httpuv is surprising and not consistent with established standards.

[1] https://github.com/jeffreyhorner/Rook
[2] https://tools.ietf.org/html/rfc3875#section-3.3

Lenguaje dominante
C
Estrellas
252
Forks
87
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

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 rstudio/httpuv

Todos los issues de rstudio/httpuv

Issues similares

Más issues de C

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.