added content-type and a larger maxBuffer