- Add Mediapartners-Google add sense crawler

This commit is contained in:
Paulo Gustavo Veiga 2012-09-03 21:39:40 -03:00
parent c4c3f30303
commit 6008376ad5

View File

@ -114,8 +114,9 @@ public class UserAgent implements Serializable {
this.os = parseOS(productDetails);
if (userAgentHeader.contains("Googlebot")) {
if (userAgentHeader.contains("Googlebot") || userAgentHeader.contains("Mediapartners-Google")) {
//"Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
// Mediapartners-Google -> Add sense robot
this.product = Product.WEB_CRAWLER;
} else if (userAgentHeader.contains("MSIE")) {