Skip to content
This repository has been archived by the owner on Mar 22, 2018. It is now read-only.

Commit

Permalink
impl #156 - serializer fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
arafato committed Feb 17, 2018
1 parent 22179c7 commit 1e90564
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/xml/Serializers.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ exports.parseServiceProperties = (body) => {
const xml = body.toString('utf8');
return parseStringAsyncNoArray(xml)
.then((result) => {
if (!(result.StorageServiceProperties.Cors.CorsRule instanceof Array)) {
const rule = result.StorageServiceProperties.Cors.CorsRule;
result.StorageServiceProperties.Cors.CorsRule = [];
result.StorageServiceProperties.Cors.CorsRule.push(rule);
}
return result;
})
.catch((err) => {
Expand Down

0 comments on commit 1e90564

Please sign in to comment.