Esempio n. 1
0
 /// <summary>设置Copy
 /// </summary>
 private void SetCopySource(IRequest request)
 {
     //判断是否为拷贝
     if (RestUtil.IsCopyRequest(request))
     {
         var copySource = request.GetHeaderValue(Headers.XAmzCopySource);
         if (!copySource.StartsWith("/"))
         {
             copySource = "/" + copySource;
         }
         request.Headers.Add(Headers.XKssCopySource, copySource);
     }
 }