diff include/urweb.h @ 1451:b6ce8ef0ea88

Before allowing an indirect return, check (dynamically, for now) that we aren't in an RPC handler
author Adam Chlipala <adam@chlipala.net>
date Sun, 17 Apr 2011 13:43:00 -0400
parents 36f7d1debb37
children 2f5fd248588d
line wrap: on
line diff
--- a/include/urweb.h	Sun Apr 17 11:21:19 2011 -0400
+++ b/include/urweb.h	Sun Apr 17 13:43:00 2011 -0400
@@ -238,6 +238,7 @@
 int uw_hasPostBody(uw_context);
 uw_Basis_postBody uw_getPostBody(uw_context);
 
+void uw_mayReturnIndirectly(uw_context);
 __attribute__((noreturn)) void uw_return_blob(uw_context, uw_Basis_blob, uw_Basis_string mimeType);
 __attribute__((noreturn)) void uw_redirect(uw_context, uw_Basis_string url);