-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: be GTFS support #47
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
) {} | ||
|
||
async syncDataToRedis(dataURL: string) { | ||
const response = await fetch(dataURL); |
Check failure
Code scanning / CodeQL
Download of sensitive file through insecure connection High
Download
HTTP source
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix AI about 2 months ago
To fix the problem, we need to ensure that the file is downloaded over a secure connection using HTTPS instead of HTTP. This involves changing the URL in the getPrague
method to use HTTPS.
- Change the URL in the
getPrague
method fromhttp://data.pid.cz/PID_GTFS.zip
tohttps://data.pid.cz/PID_GTFS.zip
. - Ensure that the rest of the code remains unchanged to maintain existing functionality.
-
Copy modified line R197
@@ -196,3 +196,3 @@ | ||
console.log("Prague: Getting data"); | ||
const dataURL = "http://data.pid.cz/PID_GTFS.zip"; | ||
const dataURL = "https://data.pid.cz/PID_GTFS.zip"; | ||
|
Changes