Why isn't unsetting the host header (to let varnish use .host_header)
acceptable?

I wouldn't worry about the performance impact of strstr, but if you really
don't like it, you can do this:

   if ("somebackend" == bereq.backend + "")

to force the type conversion. If you feel really nostalgic, you can even do:

   if ("xsomebackend" == "x" + bereq.backend)

But only a madman would take pleasure in this.

-- 
Guillaume Quintard
_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to