Codeception / Codeception/module-phpbrowser

Content-Type default should be configurable

Open
#32 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
66
Forks
16
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.