set Content-Type header in ui middleware