Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 1
    @JeremyBoden your question said you wanted to match against a fixed id and media-type. If you wanted to match against a variable you'd pop a variable in the expression, ensuring that the variable value was suitable mangled so as not to contain an unescaped single quote Commented Nov 29, 2021 at 17:06
  • My problem was a variable id (which was OK) and a media-type which is a mime-type such as 'image/jpeg' or 'image/png' etc. I wasn't aware how to handle an and condition or a 'starts-with' function. Your solution is short , and it works too! Thanks. Commented Nov 29, 2021 at 17:50