Skip to content

Commit db01eac

Browse files
authored
working rss (#20)
1 parent 9d18157 commit db01eac

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

packages/rss/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@curatedotfun/rss",
3-
"version": "0.0.8",
3+
"version": "0.0.9",
44
"description": "RSS plugin for curatedotfun",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",

packages/rss/src/index.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,11 @@ export default class RssPlugin
115115
}
116116

117117
// Store only essential configuration
118-
// Parse and normalize the service URL (enforce HTTPS and remove trailing slash)
118+
// Parse and normalize the service URL (remove trailing slash)
119119
try {
120120
const url = new URL(config.serviceUrl);
121-
// Enforce HTTPS
122-
url.protocol = "https:";
123121
// Remove trailing slash from pathname if present
124-
if (url.pathname.endsWith("/") && url.pathname.length > 1) {
122+
if (url.pathname.endsWith("/")) {
125123
url.pathname = url.pathname.slice(0, -1);
126124
}
127125
this.serviceUrl = url.toString();

0 commit comments

Comments
 (0)