HTTP HEAD request handling in TG2 CrudRestController

9 views
Skip to first unread message

ozwyzard

unread,
Jan 16, 2013, 7:13:59 PM1/16/13
to turbo...@googlegroups.com

Hello,

How do I handle http HEAD requests in TG2 CrudRestController?

When I add a 'def head(self, *args, **kw)' in the controller (and expose it), it does get called, however I need the content-length to be correct (yet not placed in the response), even when the response content-length it based on mysql table records.  Is there an appropriate genshi template for it?

Thanks!

ozwyzard

unread,
Jan 16, 2013, 8:09:51 PM1/16/13
to turbo...@googlegroups.com

I meant it to read, 'content-length to be correct, even though content is not placed in the response'...
Reply all
Reply to author
Forward
0 new messages