Fix detection of request type in IE