view examples/tutorial/geddit/lib/ajax.py @ 927:832bdab41eee stable-0.6.x

Merge r1149 from trunk (fix for tail selecting issue #399).
author hodgestar
date Thu, 10 Mar 2011 08:41:05 +0000
parents abad7c2ebe15
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