Skip to content

Commit

Permalink
Get accept header as array index access
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKohler committed Oct 3, 2024
1 parent 392cf55 commit d2c7f72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/pay.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const INTERNAL_SERVER_ERROR_CODE = 'INTERNAL_SERVER_ERROR';
const PAYMENT_POINTER = "https://ilp.gatehub.net/941671735/EUR";

export default async function handler(request, response) {
const acceptHeaderValue = request.headers.get('accept');
const acceptHeaderValue = request.headers["accept"];

const res = await fetch(PAYMENT_POINTER, {
headers: {
Expand Down

0 comments on commit d2c7f72

Please sign in to comment.