request.headers().set(HttpHeaders.Names.USER_AGENT, env().userAgent());
if (msg instanceof InsertBucketRequest || msg instanceof UpdateBucketRequest) {
request.headers().set(HttpHeaders.Names.ACCEPT, "*/*");
request.headers().set(HttpHeaders.Names.CONTENT_TYPE, "application/x-www-form-urlencoded");
}
request.headers().set(HttpHeaders.Names.CONTENT_LENGTH, content.readableBytes());
addAuth(ctx, request, msg.bucket(), msg.password());
return request;
}