Support bundle with extension to return raw data

Set correct `Content-Type` in the response's header for different extension.