Skip to content

Commit

Permalink
removed some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zg009 committed Mar 29, 2024
1 parent 7f8ff3f commit a5b8e48
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/ldp.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ class LDP {
}

async post (hostname, containerPath, stream, { container, slug, extension, contentType }) {
console.log('container:', container)
// POST without content type is forbidden
if (!contentType) {
throw error(400,
Expand All @@ -157,11 +156,8 @@ class LDP {
if (container) {
// the name of a container cannot be a valid auxiliary resource document
while (this._containsInvalidSuffixes(slug + '/')) {
console.log('splitting slug', slug)
// slug = slug.split('.')[0]
const idx = slug.lastIndexOf('.')
slug = slug.substr(0, idx)
console.log('new slug', slug)
}
} else if (this.isAuxResource(slug, extension)) throw error(403, 'POST is not allowed for auxiliary resources')

Expand Down

0 comments on commit a5b8e48

Please sign in to comment.