Connect Middleware for text/csv data type