auto commit response,replace content-type hard code.

auto commit when writer buffer flush() function is called,