fix some TODOs, test log Content-Type header