diff options
Diffstat (limited to 'www/varnish2/files/patch-svn-r1745')
-rw-r--r-- | www/varnish2/files/patch-svn-r1745 | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/www/varnish2/files/patch-svn-r1745 b/www/varnish2/files/patch-svn-r1745 new file mode 100644 index 000000000000..3f265f43d82d --- /dev/null +++ b/www/varnish2/files/patch-svn-r1745 @@ -0,0 +1,19 @@ +Index: bin/varnishd/cache_vrt.c +=================================================================== +--- bin/varnishd/cache_vrt.c (revision 1744) ++++ bin/varnishd/cache_vrt.c (revision 1745) +@@ -234,6 +234,14 @@ + http_SetH(&sp->obj->http, HTTP_HDR_STATUS, p); + } + ++int ++VRT_r_obj_status(struct sess *sp) ++{ ++ CHECK_OBJ_NOTNULL(sp, SESS_MAGIC); ++ CHECK_OBJ_NOTNULL(sp->obj, OBJECT_MAGIC); ++ return (atoi(sp->obj->http.hd[HTTP_HDR_STATUS].b)); ++} ++ + void + VRT_l_resp_status(struct sess *sp, int num) + { |