File tree 2 files changed +3
-8
lines changed
2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -196,14 +196,8 @@ It accepts two values:
196
196
197
197
When not specified a gateway implementation MUST assume ` n ` .
198
198
199
- :::note Notes for implementers
200
-
201
- A ` skip-raw-blocks=y ` request for a content path with ` raw ` root CID does not
202
- make sense and SHOULD NOT be sent by clients.
203
-
204
- A Gateway SHOULD return HTTP error 400 Bad Request
205
-
206
- :::
199
+ A Gateway MUST return HTTP error 400 Bad Request when ` skip-raw-blocks=y ` is
200
+ sent for a content path with a root CID with the ` raw ` multicodec.
207
201
208
202
# HTTP Response
209
203
Original file line number Diff line number Diff line change @@ -152,6 +152,7 @@ This IPIP does not impact security model of trustless gateway.
152
152
TODO: update below section with CIDs or CARs from conformance tests
153
153
154
154
Scenarios we should check:
155
+ - [ ] request for ` /ipfs/cid ` where CID has ` raw ` codec MUST return HTTP 400 (Bad Request)
155
156
- [ ] reuse existing UnixFS DAG that has raw-leaves, request it with
156
157
` skip-raw-blocks=n ` , confirm the response includes expected raw leaves' CIDs
157
158
- [ ] create a new CAR fixture that only have non-raw blocks. Request it with
You can’t perform that action at this time.
0 commit comments