- added optional
$config
to MobileDetect constructor. - added
autoInitOfHttpHeaders
configuration which is by defaulttrue
. This enabled the old behavior from3.x
and2.x
that allows automatic detection of HTTP headers and User Agent from $_SERVER. - refactored internal CloudFront related methods and the way
setHttpHeaders
work. It no longer falls back on$_SERVER
. The method still callssetUserAgent
in caseHTTP_USER_AGENT
and friends are present. - added
maximumUserAgentLength
to the$config
, by default the limit is500
.