Skip to content

Commit

Permalink
chore: apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Potsides <[email protected]>
  • Loading branch information
SgtPooki and achingbrain authored Mar 15, 2024
1 parent 607e5be commit eb0224b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions packages/verified-fetch/src/utils/byte-range-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export class ByteRangeContext {
}

// we should not reach this point, but return body untouched.
this.log.error('returning unmofified body for valid range request')
this.log.error('returning unmodified body for valid range request')
return body
}

Expand Down Expand Up @@ -264,11 +264,13 @@ export class ByteRangeContext {
this.byteSize = byteSize
}

// This function returns the value of the "content-range" header.
// Content-Range: <unit> <range-start>-<range-end>/<size>
// Content-Range: <unit> <range-start>-<range-end>/*
// Content-Range: <unit> */<size>
// @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range
/**
* This function returns the value of the "content-range" header.
* Content-Range: <unit> <range-start>-<range-end>/<size>
* Content-Range: <unit> <range-start>-<range-end>/*
* Content-Range: <unit> */<size>
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range
*/
public get contentRangeHeaderValue (): string {
if (this._contentRangeHeaderValue != null) {
return this._contentRangeHeaderValue
Expand Down

0 comments on commit eb0224b

Please sign in to comment.