view examples/tutorial/geddit/lib/ajax.py @ 901:89f4a6a31dbf

Bump up version number on trunk.
author cmlenz
date Thu, 22 Apr 2010 17:27:55 +0000
parents dba522b4c31d
children
line wrap: on
line source
import cherrypy

def is_xhr():
    requested_with = cherrypy.request.headers.get('X-Requested-With')
    return requested_with and requested_with.lower() == 'xmlhttprequest'
Copyright (C) 2012-2017 Edgewall Software