Skip to content

Commit

Permalink
fix: empty body with content type json
Browse files Browse the repository at this point in the history
  • Loading branch information
vafanassieff committed Feb 7, 2024
1 parent 4704a9e commit f423bde
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions apps/api/src/services/fetch.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
export const fetchLnurl = async (hostname) => {
const url = new URL(`https://api.${hostname}/v2/lnurl/auth`)

const response = await fetch(url, {
method: 'post',
headers: { 'Content-Type': 'application/json' },
})
const response = await fetch(url, { method: 'post' })

if (!response.ok) {
const error = await response.text()
Expand Down

0 comments on commit f423bde

Please sign in to comment.