All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
0.4.0 - 2017-09-21
- ContentType: New static function
ContentType::getDefaultFormats()
that returns the default formats used. - ContentType: New option
useDefault
option to enable/disable the default format. By default is enabled. If it's disabled, a 406 response is returned when no content-type is found.
- ContentType: Removed the
defaultFormat
option and use always the first element in the formats list.
- Append
.dist
suffix to phpcs.xml and phpunit.xml files - Changed the configuration of phpcs and php_cs
- Upgraded phpunit to the latest version and improved its config file
0.3.1 - 2017-05-18
- Added
kml
to the list of the default formats
0.3.0 - 2016-12-26
- Updated tests
- Updated to
http-interop/http-middleware#0.4
- Updated
friendsofphp/php-cs-fixer#2.0
- New method
ContentType::charsets()
to define the available charsets and negotiate theAccept-Charset
header.
- Only text-based formats (html, text, css, etc) adds the
charset=[charset]
sufix toContent-Type
header.
0.2.0 - 2016-11-22
- New
ContentType::noSniff()
option to add theX-Content-Type-Options: nosniff
header (enabled by default)
- Updated to
http-interop/http-middleware#0.3
- ContentEncoding middleware removes the
Accept-Encoding
header if it does not match with any available option.
First version