Added back implicit $_SERVER scanning for setting the User-Agent string.
- added optional
$configto MobileDetect constructor. - added
autoInitOfHttpHeadersconfiguration which is by defaulttrue. This enabled the old behavior from3.xand2.xthat allows automatic detection of HTTP headers and User Agent from $_SERVER. - refactored internal CloudFront related methods and the way
setHttpHeaderswork. It no longer falls back on$_SERVER. The method still callssetUserAgentin caseHTTP_USER_AGENTand friends are present. - added
maximumUserAgentLengthto the$config, by default the limit is500.