Use correct header for middleware