Skip to content

Commit

Permalink
add query param to stacjs rss proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
aorcsik committed Jun 17, 2024
1 parent fdcdce0 commit 13ca3e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/js/stacks/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default {
if (rssMatch) {
urlObject.hostname = 'stacks.bitrise.io';
urlObject.pathname = `/${rssMatch[1]}`;
urlObject.search = '?proxy=1';
const response = await fetch(urlObject);
const data = (await response.text()).replaceAll('stacks.bitrise.io/', 'bitrise.io/stacks/');
return new Response(data, {
Expand Down

0 comments on commit 13ca3e3

Please sign in to comment.