blob: 3f265f43d82d0197bbae5888e3437529ce060274 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)
{
|