varnishcache / varnish-devicedetect

VCL based device detection for Varnish Cache.
Other
299 stars 88 forks source link

FirefoxOS detection #4

Closed dcarrillo closed 11 years ago

dcarrillo commented 11 years ago

Hi,

Could you please add FirefoxOS to list of mobile devices.

According to Mozilla, User-Agent is:

  Mozilla/5.0 (Mobile; rv:15.0) Gecko/15.0 Firefox/15.0

Please, avoid confusion with Firefox for Android:

  Mozilla/5.0 (Android; Mobile; rv:15.0) Gecko/15.0 Firefox/15.0

Thank you very much.

lkarsten commented 11 years ago

Can you please try to make a patch for this?

Thanks.

dcarrillo commented 11 years ago

Hi,

Attached a simple patch.

https://github.com/dcarrillo/varnish-devicedetect/commit/45bd60d79370670f556c314a3b862b7d5f98b926

Hope it helps.

dcarrillo commented 11 years ago

Ups,

Sorry, the commit has a typo, the right one:

https://github.com/dcarrillo/varnish-devicedetect/commit/e5a3a887ed9d1a123a8ee23442d5d2b4e80791c2

lkarsten commented 11 years ago

Merged now.

Thank you for the contribution.