{"action":"created","issue":{"url":"https://api.github.com/repos/javalite/activeweb/issues/237","labels_url":"https://api.github.com/repos/javalite/activeweb/issues/237/labels{/name}","comments_url":"https://api.github.com/repos/javalite/activeweb/issues/237/comments","events_url":"https://api.github.com/repos/javalite/activeweb/issues/237/events","html_url":"https://github.com/javalite/activeweb/issues/237","id":102811700,"number":237,"title":"RequestUtils.isXhr() vs Android \"X-Requested-With\" header","user":{"login":"odess1t","id":13946553,"avatar_url":"https://avatars.githubusercontent.com/u/13946553?v=3","gravatar_id":"","url":"https://api.github.com/users/odess1t","html_url":"https://github.com/odess1t","followers_url":"https://api.github.com/users/odess1t/followers","following_url":"https://api.github.com/users/odess1t/following{/other_user}","gists_url":"https://api.github.com/users/odess1t/gists{/gist_id}","starred_url":"https://api.github.com/users/odess1t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odess1t/subscriptions","organizations_url":"https://api.github.com/users/odess1t/orgs","repos_url":"https://api.github.com/users/odess1t/repos","events_url":"https://api.github.com/users/odess1t/events{/privacy}","received_events_url":"https://api.github.com/users/odess1t/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-08-24T14:53:39Z","updated_at":"2015-08-24T16:00:53Z","closed_at":null,"body":"Android 5+ native browser sends \"X-Requested-With\" header set to  'com.android.browser'.\r\nThat's why RequestUtils.isXhr() method does not work correctly. \r\n\r\nSimilar issue was fixed in terms of https://github.com/javalite/activeweb/issues/211\r\n\r\nIs it possible to check the value of the header in xhr() method too?\r\n\r\nThank you!"},"comment":{"url":"https://api.github.com/repos/javalite/activeweb/issues/comments/134263449","html_url":"https://github.com/javalite/activeweb/issues/237#issuecomment-134263449","issue_url":"https://api.github.com/repos/javalite/activeweb/issues/237","id":134263449,"user":{"login":"odess1t","id":13946553,"avatar_url":"https://avatars.githubusercontent.com/u/13946553?v=3","gravatar_id":"","url":"https://api.github.com/users/odess1t","html_url":"https://github.com/odess1t","followers_url":"https://api.github.com/users/odess1t/followers","following_url":"https://api.github.com/users/odess1t/following{/other_user}","gists_url":"https://api.github.com/users/odess1t/gists{/gist_id}","starred_url":"https://api.github.com/users/odess1t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odess1t/subscriptions","organizations_url":"https://api.github.com/users/odess1t/orgs","repos_url":"https://api.github.com/users/odess1t/repos","events_url":"https://api.github.com/users/odess1t/events{/privacy}","received_events_url":"https://api.github.com/users/odess1t/received_events","type":"User","site_admin":false},"created_at":"2015-08-24T16:00:53Z","updated_at":"2015-08-24T16:00:53Z","body":"Yes, this is correct.\r\n\r\nFor Ajax requests it sends \"XMLHttpRequest\" value, as well as other browsers I checked with (Chrome, Firefox).\r\n\r\nSo, probably the method should return TRUE only in case the header value is 'XMLHttpRequest'.\r\nPlease correct me if I'm mistaking and other header values which indicate Ajax request are possible. (Except of \"XMLHttpRequest\" of course). This would help to avoid checking hardcoded Android-specific value."}}