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

Commit

Permalink
implementation #156
Browse files Browse the repository at this point in the history
  • Loading branch information
arafato committed Feb 16, 2018
1 parent a0f6c90 commit 5bdbd77
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/AzuriteBlob.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ class AzuriteBlob {
require('./routes/blob/ContainerRoute')(app);
require('./routes/blob/BlobRoute')(app);
require('./routes/blob/NotFoundRoute')(app);
app.use(require('./middleware/blob/cors'));
app.use(require('./middleware/blob/authentication'));
app.use(require('./middleware/blob/validation'));
app.use(require('./middleware/blob/actions'));
Expand Down
2 changes: 1 addition & 1 deletion lib/actions/blob/GetBlobServiceProperties.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class GetBlobServiceProperties {
}

process(request, res) {
storageManager.getBlobServiceProperties(request)
storageManager.getBlobServiceProperties()
.then((response) => {
const xml = js2xmlparser.parse('StorageServiceProperties', response.payload.StorageServiceProperties || []);
res.set(response.httpProps);
Expand Down
2 changes: 1 addition & 1 deletion lib/core/blob/StorageManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ class StorageManager {
return BbPromise.resolve(new AzuriteResponse({}));
}

getBlobServiceProperties(request) {
getBlobServiceProperties() {
const coll = this.db.getCollection(StorageTables.ServiceProperties);
const settings = coll.where((e) => {
return true; // there is always at most one entry in this collection
Expand Down
2 changes: 1 addition & 1 deletion lib/middleware/blob/cors.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const BbPromise = require('bluebird'),
module.exports = (req, res, next) => {
BbPromise.try(() => {
const request = req.azuriteRequest;
sm.getBlobServiceProperties(request)
sm.getBlobServiceProperties()
.then((response) => {
if (response.payload.StorageServiceProperties && request.httpProps[N.ORIGIN]) {
for (const rule of response.payload.StorageServiceProperties.Cors) {
Expand Down

0 comments on commit 5bdbd77

Please sign in to comment.