use regexp to match content-type, remove console.log statement