Skip to content

Commit

Permalink
Update lib/ldp.js
Browse files Browse the repository at this point in the history
Co-authored-by: Ted Thibodeau Jr <[email protected]>
  • Loading branch information
zg009 and TallTed authored Apr 1, 2024
1 parent a5b8e48 commit f6ef443
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ldp.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class LDP {
const idx = slug.lastIndexOf('.')
slug = slug.substr(0, idx)
}
} else if (this.isAuxResource(slug, extension)) throw error(403, 'POST is not allowed for auxiliary resources')
} else if (this.isAuxResource(slug, extension)) throw error(403, 'POST to auxiliary resources is not allowed')

if (slug.match(/\/|\||:/)) {
throw error(400, 'The name of new file POSTed may not contain : | or /')
Expand Down

0 comments on commit f6ef443

Please sign in to comment.