Skip to content

Commit

Permalink
pipe through repo rev header
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Feb 7, 2024
1 parent 02d1b51 commit 478b23a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/pds/src/pipethrough.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ export const pipethrough = async (
)
}
const encoding = res.headers.get('content-type') ?? 'application/json'
return { encoding, buffer }
const repoRevHeader = res.headers.get('atproto-repo-rev')
const headers = repoRevHeader
? { ['atproto-repo-rev']: repoRevHeader }
: undefined
return { encoding, buffer, headers }
}

export const constructUrl = (
Expand Down

0 comments on commit 478b23a

Please sign in to comment.