Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions plugins/experimental/header_rewrite/conditions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,10 @@ ConditionPath::eval(const Resources& res)
{
std::string s;

if (NULL == res._rri) {
TSDebug(PLUGIN_NAME, "PATH requires remap initialization! Evaluating to false!");
return false;
}
append_value(s, res);
TSDebug(PLUGIN_NAME, "Evaluating PATH");

Expand Down Expand Up @@ -270,6 +274,10 @@ ConditionQuery::eval(const Resources& res)
{
std::string s;

if (NULL == res._rri) {
TSDebug(PLUGIN_NAME, "QUERY requires remap initialization! Evaluating to false!");
return false;
}
append_value(s, res);
TSDebug(PLUGIN_NAME, "Evaluating QUERY - %s", s.c_str());
return static_cast<const Matchers<std::string>*>(_matcher)->test(s);
Expand Down