Content-Type default should be configurable
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- php
- Domain
- testing-qa
Research direction
Start with src/Codeception/Lib/Connector/Guzzle.php at createResponse(), where the issue says the default Content-Type is assigned. Check the surrounding PhpBrowser configuration and existing tests first. Done means the current text/html default remains available while a null option allows Content-Type to be absent for dontSeeHttpHeader("Content-Type") tests.
Written by the indexing model from the issue text.
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.
- Dominant language
- PHP
- Stars
- 66
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Codeception/module-phpbrowser
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
All issues in Codeception/module-phpbrowser
Similar issues
-
status/awaiting_triage
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
WordPress/plugin-check#1486 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
az-digital/az_quickstart#6019 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
grokability/snipe-it#19688 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100