added content-type to middleware