mirror of
https://github.com/wukko/cobalt.git
synced 2025-02-15 23:36:37 +01:00
api/instagram: add explanation for resolveRedirectingURL user-agent
This commit is contained in:
parent
59cb6b05be
commit
55f591b37d
1 changed files with 3 additions and 0 deletions
|
@ -522,6 +522,9 @@ export default function instagram(obj) {
|
||||||
return resolveRedirectingURL(
|
return resolveRedirectingURL(
|
||||||
`https://www.instagram.com/share/${shareId}/`,
|
`https://www.instagram.com/share/${shareId}/`,
|
||||||
dispatcher,
|
dispatcher,
|
||||||
|
// for some reason instagram decides to return HTML
|
||||||
|
// instead of a redirect when requesting with a normal
|
||||||
|
// browser user-agent
|
||||||
'curl/7.88.1'
|
'curl/7.88.1'
|
||||||
).then(match => instagram({
|
).then(match => instagram({
|
||||||
...obj, ...match,
|
...obj, ...match,
|
||||||
|
|
Loading…
Reference in a new issue