415 Unsupported Media Type with wide space - My validation response is not showing

My question: My api content type is application/json. So I done some configuration in middle ware to handle invalid json types. But for plain text it will not returning my response only for wide space. Is it throwing from postman? because in swagger it will work as expected.

Details (like screenshots):