Codeception / Codeception/module-phpbrowser

Content-Type default should be configurable

オープン
#32 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
PHP
スター
66
フォーク
16
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。