Skip to content

Commit

Permalink
indexer-agent: Fix content type of /collect-receipts requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jannis committed May 11, 2021
1 parent 55cf183 commit 7646615
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/indexer-agent/src/query-fees/allocations.ts
Expand Up @@ -245,6 +245,11 @@ export class AllocationReceiptCollector implements ReceiptCollector {
const response = await axios.post(
this.collectEndpoint.toString(),
encodedReceipts.unwrap().buffer,
{
headers: {
'content-type': 'application/octet-stream',
},
},
)
const voucher = response.data as {
allocation: string
Expand Down

0 comments on commit 7646615

Please sign in to comment.