always set content-type, use application/octet-stream for unknown.