Repository navigation
Make internal/quads unacceptable as output format - #316
Conversation
579f6db to
9d4fe4c
Compare
RubenVerborgh
left a comment
There was a problem hiding this comment.
Good work, just various nits.
| if (!result.type) { | ||
| result.type = []; | ||
| } |
There was a problem hiding this comment.
Any reason why we are not doing this above? We seem to have the exact opposite condition there: https://github.com/solid/community-server/pull/316/files#diff-87f33fa25d98a6c736238125a4aa2ac23945eae2bb52e4a99a49751a318c5504R34-R36
There was a problem hiding this comment.
The reason is I just added it there to make sure there is always an array to add the default preference to. But it is true that so far we have not clearly defined what the difference is between having an empty array and not having the preference field present at all.
9d4fe4c to
d973428
Compare
|
I rewrote the |
|
Excellent, thank you! |
This closes #306 and closes #276 . It does not yet resolve the issue of making sure the patching store does not send quads back to the file store, but that should just be a config change after #297 is resolved.
I like how we can now reject content-types using weight 0, not a big fan of how there is now just a line always adding this preference in
AcceptPreferenceParser, but it seemed like the best place to add it. Could also add an input parameter taking forbidden content-types into account but that seems a bit overkill.