fixed glitch with wrong content-type for JSON-requests