Fix: correctly pattern match on header value