Comparing version 0.6.15 to 0.6.16
@@ -18,4 +18,5 @@ 'use strict'; | ||
const transformedModel = this._transformBlobList(result, req.query, includeMetadata === true); | ||
const xmlDoc = js2xmlparser.parse('EnumerationResults', transformedModel); | ||
res.set(new ResponseHeader({'Content-Type':'application/xml'})); | ||
let xmlDoc = js2xmlparser.parse('EnumerationResults', transformedModel); | ||
xmlDoc = xmlDoc.replace(`<EnumerationResults>`, `<EnumerationResults ServiceEndpoint="https://azurite.blob.core.windows.net" ContainerName="${container}">`); | ||
res.set(new ResponseHeader({ 'Content-Type': 'application/xml' })); | ||
res.status(200).send(xmlDoc); | ||
@@ -22,0 +23,0 @@ }) |
@@ -22,2 +22,3 @@ 'use strict'; | ||
let xmlDoc = js2xmlparser.parse('EnumerationResults', transformedModel); | ||
xmlDoc = xmlDoc.replace(`<EnumerationResults>`, `<EnumerationResults ServiceEndpoint="https://azurite.blob.core.windows.net">`) | ||
xmlDoc = xmlDoc.replace(`<?xml version='1.0'?>`, `<?xml version="1.0" encoding="utf-8"?>`) | ||
@@ -47,3 +48,3 @@ res.status(200).send(xmlDoc); | ||
} | ||
modelContainer.Properties['Last-Modified'] = container.httpProps.lastModified; | ||
modelContainer.Properties['Last-Modified'] = container.httpProps["Last-Modified"]; | ||
modelContainer.Properties.ETag = container.httpProps.ETag; | ||
@@ -50,0 +51,0 @@ } |
@@ -24,3 +24,4 @@ 'use strict'; | ||
this.Name = name; | ||
this.Snapshot = ''; | ||
// Snapshot feature has not been implemented yet | ||
// this.Snapshot = ''; | ||
this.Properties = new Properties(); | ||
@@ -27,0 +28,0 @@ this.Metadata = {}; |
{ | ||
"name": "azurite", | ||
"version": "0.6.15", | ||
"version": "0.6.16", | ||
"description": "A lightweight server clone of Azure Blob Storage that simulates most of the commands supported by it with minimal dependencies.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
132339
2865