mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Dont send the normalized URL to the content-fetch service
URLs need to be sent to contentFetch exactly as they were received, this is because many apps will use signed URLs for PDFs being served from GCP or AWS. A signed URL needs to keep all its query params in the same order to validate.
This commit is contained in:
parent
93b095818d
commit
0cabd26344
1 changed files with 3 additions and 2 deletions
|
|
@ -83,13 +83,14 @@ export const createPageSaveRequest = async (
|
|||
priority = priority || (await getPriorityByRateLimit(userId))
|
||||
|
||||
// look for existing page
|
||||
url = normalizeUrl(url, {
|
||||
const normalizedUrl = normalizeUrl(url, {
|
||||
stripHash: true,
|
||||
stripWWW: false,
|
||||
})
|
||||
|
||||
let page = await getPageByParam({
|
||||
userId,
|
||||
url,
|
||||
url: normalizedUrl,
|
||||
})
|
||||
if (page) {
|
||||
console.log('Page already exists', page)
|
||||
|
|
|
|||
Loading…
Reference in a new issue