yuchanns commented on code in PR #4740:
URL: https://github.com/apache/opendal/pull/4740#discussion_r1641240949
##########
core/src/services/aliyun_drive/core.rs:
##########
@@ -78,6 +80,9 @@ impl Debug for AliyunDriveCore {
impl AliyunDriveCore {
async fn send(&self, mut req: Request<Buffer>, token: Option<&str>) ->
Result<Buffer> {
+ // AliyunDrive raise NullPointerException if you haven't set a
user-agent.
+ req.headers_mut()
+ .insert(header::USER_AGENT, HeaderValue::from_static("opendal"));
Review Comment:
Hi @Xuanwo, how can I get the OpenDAL version? I found that some of the
AliyunDrive API requires a UA (otherwise they raise a NullPointerException 😅).
Therefore, I want to add a UA in the format of `User-Agent: opendal/1.0.0`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]