Added more logs to cover downloading settings. Fixed bug with content type header.