@@ -299,7 +299,8 @@ public S3Response Read(S3Request req)
299
299
resp . Contents . Add ( c ) ;
300
300
}
301
301
302
- return new S3Response ( req , 200 , "application/xml" , null , Encoding . UTF8 . GetBytes ( Common . SerializeXml ( resp ) ) ) ;
302
+ return new S3Response ( req , 200 , "application/xml" , null ,
303
+ Encoding . UTF8 . GetBytes ( Common . SerializeXml < ListBucketResult > ( resp , false ) ) ) ;
303
304
}
304
305
305
306
/// <summary>
@@ -311,7 +312,8 @@ public S3Response ReadLocation(S3Request req)
311
312
{
312
313
LocationConstraint resp = new LocationConstraint ( ) ;
313
314
resp . Text = _Settings . Server . RegionString ;
314
- return new S3Response ( req , 200 , "application/xml" , null , Encoding . UTF8 . GetBytes ( Common . SerializeXml ( resp ) ) ) ;
315
+ return new S3Response ( req , 200 , "application/xml" , null ,
316
+ Encoding . UTF8 . GetBytes ( Common . SerializeXml < LocationConstraint > ( resp , false ) ) ) ;
315
317
}
316
318
317
319
/// <summary>
@@ -490,7 +492,8 @@ public S3Response ReadAcl(S3Request req)
490
492
}
491
493
}
492
494
493
- return new S3Response ( req , 200 , "application/xml" , null , Encoding . UTF8 . GetBytes ( Common . SerializeXml ( ret ) ) ) ;
495
+ return new S3Response ( req , 200 , "application/xml" , null ,
496
+ Encoding . UTF8 . GetBytes ( Common . SerializeXml < AccessControlPolicy > ( ret , false ) ) ) ;
494
497
}
495
498
496
499
/// <summary>
@@ -546,7 +549,8 @@ public S3Response ReadTags(S3Request req)
546
549
}
547
550
}
548
551
549
- return new S3Response ( req , 200 , "application/xml" , null , Encoding . UTF8 . GetBytes ( Common . SerializeXml ( tags ) ) ) ;
552
+ return new S3Response ( req , 200 , "application/xml" , null ,
553
+ Encoding . UTF8 . GetBytes ( Common . SerializeXml < Tagging > ( tags , false ) ) ) ;
550
554
}
551
555
552
556
/// <summary>
@@ -655,7 +659,8 @@ public S3Response ReadVersions(S3Request req)
655
659
}
656
660
}
657
661
658
- return new S3Response ( req , 200 , "application/xml" , null , Encoding . UTF8 . GetBytes ( Common . SerializeXml ( resp ) ) ) ;
662
+ return new S3Response ( req , 200 , "application/xml" , null ,
663
+ Encoding . UTF8 . GetBytes ( Common . SerializeXml < ListVersionsResult > ( resp , false ) ) ) ;
659
664
}
660
665
661
666
/// <summary>
@@ -704,11 +709,13 @@ public S3Response ReadVersioning(S3Request req)
704
709
{
705
710
ret . Status = "Enabled" ;
706
711
ret . MfaDelete = "Disabled" ;
707
- return new S3Response ( req , 200 , "application/xml" , null , Encoding . UTF8 . GetBytes ( Common . SerializeXml ( ret ) ) ) ;
712
+ return new S3Response ( req , 200 , "application/xml" , null ,
713
+ Encoding . UTF8 . GetBytes ( Common . SerializeXml < VersioningConfiguration > ( ret , false ) ) ) ;
708
714
}
709
715
else
710
716
{
711
- return new S3Response ( req , 200 , "application/xml" , null , Encoding . UTF8 . GetBytes ( Common . SerializeXml ( ret ) ) ) ;
717
+ return new S3Response ( req , 200 , "application/xml" , null ,
718
+ Encoding . UTF8 . GetBytes ( Common . SerializeXml < VersioningConfiguration > ( ret , false ) ) ) ;
712
719
}
713
720
}
714
721
0 commit comments