Skip to content

Commit

Permalink
fix: use https for invoice download
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanvanherwijnen committed Jul 10, 2024
1 parent a718721 commit f0b12ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/src/trpc/admin/invoices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const downloadPdf = async (invoice: Invoice) => {
let pdf
try {
const pdfResponse = await fetch(
`http://${slimfactDownloaderHostname}/?uuid=${invoice.uuid}&host=${hostname}`
`https://${slimfactDownloaderHostname}/?uuid=${invoice.uuid}&host=${hostname}`
)

const header = pdfResponse.headers.get('Content-Disposition')
Expand Down

0 comments on commit f0b12ea

Please sign in to comment.