Skip to content
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

Follow Redirects & 400 Error #37

Open
felixerdy opened this issue Jun 3, 2024 · 0 comments
Open

Follow Redirects & 400 Error #37

felixerdy opened this issue Jun 3, 2024 · 0 comments
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement type: imperfection Perceived defect in any part of project

Comments

@felixerdy
Copy link

I'd like to use the library to download compiled .ota files from my latest GitHub release assets. In my example, I can access the latest .ota file using the following URL: https://github.com/sensebox/senseBox-bike-Arduino/releases/latest/download/senseBox-bike-atrai.ino.ota

This URL however redirects two times to the actual download link:

In my fork, I created a logic to follow redirects (main...felixerdy:Arduino_ESP32_OTA:main) which itself works as intended. However, the https://objects.githubusercontent.com/... URL can't be consumed by the Library as it returns a 400 error. Using the same link in my browser however downloads the intended file.

Please note that I already added the needed certificates

Do you have an idea how to resolve the 400 error?

P.S.: I'd be happy to create a PR for the follow redirect code if you want me to

@per1234 per1234 added type: imperfection Perceived defect in any part of project type: enhancement Proposed improvement topic: code Related to content of the project itself labels Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants