fixed problem with accept and content-type