nodeSolidServer / nodeSolidServer/node-solid-server
Content Negotiator misinterprets Accept Header
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 1.8k
- 派生
- 308
- PR 合并指标
- 30 天内没有已合并 PR
描述
If the folder contains an index.html, the Accept Header is not interpreted consistently.
Accept: application/n-quads,application/trig;q=0.95,application/ld+json;q=0.9,application/n-triples;q=0.8,text/turtle;q=0.5,*/*;q=0.1
Will return the index.html. Even though text/html is 0.1.
Accept: */*;q=0.1,application/n-quads,application/trig;q=0.95,application/ld+json;q=0.9,application/n-triples;q=0.8,text/turtle;q=0.5
If the wildcard */*;q=0.1 is moved to the front, the server responds with a LD Resource which describes the container.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先,针对包含 index.html 的文件夹复现两个 Accept 标头示例,然后将返回的表示与所声明的质量值进行比较。完成的标准是,内容协商能够一致地处理通配符的位置,并选择标头所指示的响应,而不是意外返回 index.html。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, node.js
- 领域
- api, backend
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 30/100