Commit b9506442 authored by Martin Blix Grydeland's avatar Martin Blix Grydeland

Add an assert that we get the vary attribute

If an object has OA_VARY, we should succeed in getting it.

This might help to narrow down #2319
parent d246d525
......@@ -428,6 +428,7 @@ HSH_Lookup(struct req *req, struct objcore **ocp, struct objcore **bocp,
if (ObjHasAttr(wrk, oc, OA_VARY)) {
vary = ObjGetAttr(wrk, oc, OA_VARY, NULL);
AN(vary);
if (!VRY_Match(req, vary))
continue;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment