Closed gavram closed 4 years ago
@anuveyatsu Please can you review this?
This solves https://gitlab.com/datopian/core/support/-/issues/250
There are cases when JSON/XML resources are external - linked ones. In those cases we don't need redirection. Example:
With these changes we first check is there a redirection, and if yes we change the resource URL to res.headers.location. If there is not redirection the URL of the resource remains the same.
res.headers.location
@anuveyatsu Please can you review this?
This solves https://gitlab.com/datopian/core/support/-/issues/250
There are cases when JSON/XML resources are external - linked ones. In those cases we don't need redirection. Example:
With these changes we first check is there a redirection, and if yes we change the resource URL to
res.headers.location
. If there is not redirection the URL of the resource remains the same.