view examples/tutorial/geddit/lib/ajax.py @ 652:72e1a2ed04a0

Fix typo in benchmark info output.
author cmlenz
date Thu, 22 Nov 2007 19:18:34 +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