Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > fac195bf96b9a69a0644d45f5583eb35 > files > 240

python3-genshi-0.7.1-1.mga7.noarch.rpm

import cherrypy

def is_xhr():
    requested_with = cherrypy.request.headers.get('X-Requested-With')
    return requested_with and requested_with.lower() == 'xmlhttprequest'