Skip to content

Commit b54635b

Browse files
committed
style(lint): fix markdown errors
1 parent dd84771 commit b54635b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/http-gateways/path-gateway.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,10 @@ Optional, `car-scope=(block|file|all)` with default value 'all', describes the s
224224
Optional, `bytes=x:y` with default value `0:*`. When the entity at the end of the end of the specified path can be intepreted as a contingous array of bytes (such as a UnixFS file), returns only the blocks required to verify the specified byte range of said entity. Put another way, the `bytes` parameters can serve as a trustless form of an HTTP range request. If the entity at the end of the path cannot be interpreted as a continguous array of bytes (such as a CBOR/JSON map), this parameter has no effect. Allowed values for `x` and `y` are positive integers where y >= x, which limit the return blocks to needed to satify the range [x, y]. In addition the following additional values are permitted:
225225

226226
- `*` can be substituted for end-of-file
227-
- `?bytes=0:*` is the entire file (i.e. to fulfill HTTP Range Request `x-` requests)
227+
- `?bytes=0:*` is the entire file (i.e. to fulfill HTTP Range Request `x-` requests)
228228
- Negative numbers can be used for referring to bytes from the end of a file
229-
- `?bytes=-1024:*` is the last 1024 bytes of a file (i.e. to fulfill HTTP Range Request `-y` requests)
230-
- It is also permissible (unlike with HTTP Range Requests) to ask for the range of 500 bytes from the beginning of the file to 1000 bytes from the end by `?bytes=499:-1000`
229+
- `?bytes=-1024:*` is the last 1024 bytes of a file (i.e. to fulfill HTTP Range Request `-y` requests)
230+
- It is also permissible (unlike with HTTP Range Requests) to ask for the range of 500 bytes from the beginning of the file to 1000 bytes from the end by `?bytes=499:-1000`
231231

232232
<!-- TODO Planned: https://github.com/ipfs/go-ipfs/issues/8769
233233
- `selector=<cid>` can be used for passing a CID with [IPLD selector](https://ipld.io/specs/selectors)

src/http-gateways/trustless-gateway.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ The minimal implementation means:
1717
- response type is always fully verifiable: client can decide between a raw block or a CAR stream
1818
- no UnixFS/IPLD decoding server-side
1919
- for CAR files:
20-
- the behavior is identical to :cite[path-gateway]
20+
- the behavior is identical to :cite[path-gateway]
2121
- for raw blocks:
22-
- data is requested by CID, only supported path is `/ipfs/{cid}`
23-
- no path traversal or recursive resolution,
22+
- data is requested by CID, only supported path is `/ipfs/{cid}`
23+
- no path traversal or recursive resolution,
2424

2525
# HTTP API
2626

0 commit comments

Comments
 (0)