Skip to content

Commit

Permalink
Merge pull request #26 from astra137/main
Browse files Browse the repository at this point in the history
Thanks for the PR. Looks good to me
  • Loading branch information
benjifs authored Aug 15, 2024
2 parents 474ace4 + b436621 commit 0d0e0f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions/discover.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { isValidURL, Response, Error } from './lib/utils'
const requiredRels = ['authorization_endpoint', 'token_endpoint', 'micropub']

const getRelURL = ($, rel) => $ && rel ? $(`[rel='${rel}']`).attr('href') : null
const absoluteURL = (url, baseURL) => url && !url.match(/^https?:\/\//) ? `${baseURL}${url}` : url
const absoluteURL = (url, baseURL) => url ? new URL(url, baseURL).href : null

exports.handler = async e => {
const urlString = e.queryStringParameters.url
Expand Down

0 comments on commit 0d0e0f3

Please sign in to comment.