51Degrees / Device-Detection

THE Fastest and most Accurate device detection for C / PHP / Perl / Python and Node.js - professionally maintained device data
https://51degrees.com/device-detection
Other
112 stars 46 forks source link

Nginx headers #14

Closed stgleb closed 7 years ago

stgleb commented 7 years ago

Hello, right now I can see following headers in instructions

add_header x-device $http_x_device;
add_header x-mobile $http_x_mobile;
add_header x-tablet $http_x_tablet;
add_header x-smartphone $http_x_smartphone;
add_header x-metrics $http_x_metrics;

Is there any other headers? Like hardwareModel, hardwareFamily, browserName etc. ?

lily51degrees commented 7 years ago

Hi there,

you can add your own headers based on our property dictonary. for example

51D_match_all x-HM HardwareModel

add_header x-HM $http_x_HM