Skip to content

Content-Type default should be configurable #32

@iweindesmedt

Description

@iweindesmedt

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions