Skip to content

Commit 697a16c

Browse files
authored
Merge pull request #1363 from bourgeoa/fix#1361
mime-type named container gets mime-type
2 parents d3a8321 + acda43a commit 697a16c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -401,14 +401,15 @@ it. It is currently adviceable to remove it or set it inactive rather
401401
than set a large quota, because the current implementation will impair
402402
write performance if there is a lot of data.
403403

404-
## Contribute to Solid
404+
## Get help and contribute
405405

406406
Solid is only possible because of a large community of [contributors](https://github.com/solid/node-solid-server/blob/master/CONTRIBUTORS.md).
407407
A heartfelt thank you to everyone for all of your efforts!
408408

409-
You can help us too:
409+
You can receive or provide help too:
410410

411-
- [Join us in Gitter](https://gitter.im/solid/chat) to help with development or to hang out with us :)
411+
- [Join us in Gitter](https://gitter.im/solid/chat) to chat about Solid or to hang out with us :)
412+
- [NSS Gitter channel](https://gitter.im/solid/node-solid-server) for specific (installation) advice about this code base
412413
- [Create a new issue](https://github.com/solid/node-solid-server/issues/new) to report bugs
413414
- [Fix an issue](https://github.com/solid/node-solid-server/issues)
414415
- Reach out to Jackson at jacksonm@inrupt.com to become more involved in maintaining Node Solid Server

lib/ldp-container.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ function addStats (resourceGraph, reqUri, stats, filename) {
122122
ns.stat('size'),
123123
stats.size)
124124

125-
if (mime.lookup(filename)) { // Is the file has a well-known type,
125+
if (!reqUri.endsWith('/') && mime.lookup(filename)) { // Is the file has a well-known type,
126126
let type = 'http://www.w3.org/ns/iana/media-types/' + mime.lookup(filename) + '#Resource'
127127
resourceGraph.add(
128128
resourceGraph.sym(reqUri),

0 commit comments

Comments
 (0)