| 994 | } |
| 995 | |
| 996 | Errata |
| 997 | QueryValueDirective::invoke_on_url(Context &ctx, ts::URL &&url) |
| 998 | { |
| 999 | if (url.is_valid()) { |
| 1000 | auto qs = query_value_update(ctx, url.query(), _name, ctx.extract(_expr), true, false); |
| 1001 | url.query_set(qs); |
| 1002 | ctx.transient_discard(); |
| 1003 | } |
| 1004 | return Errata(S_ERROR, "Failed to update query value {} because the URL could not be found.", _name); |
| 1005 | } |
| 1006 | |
| 1007 | // -- |
| 1008 | class Do_ua_req_query_value : public QueryValueDirective |