Codeception / Codeception/module-phpbrowser

Content-Type default should be configurable

Abierto
#32 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
PHP
Estrellas
66
Forks
16
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Method createResponse() sets the Content-Type to text/html when not present in response.
Content-Type is not a required header, so this module should be able to test it's absence with `->dontSeeHttpHeader("Content-Type")`.

I would suggest to introduce an option like 'defaultContentType' which defaults to the current 'text/html' but can be set to null.

Code link:
https://github.com/Codeception/module-phpbrowser/blob/master/src/Codeception/Lib/Connector/Guzzle.php#L103

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.