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

Add a custom header with info-hash to the download endpoints #243

Merged
merged 2 commits into from
Aug 2, 2023
Merged

Add a custom header with info-hash to the download endpoints #243

merged 2 commits into from
Aug 2, 2023

Conversation

josecelano
Copy link
Member

Endpoints, where you can download a torrent file, have now a custom header containing the torrent infohash. The name of the header is: x-torrust-torrent-infohash.

It is added because in the frontend we need the infohash in a cypress test and this way we do not need to parse the downloaded torrent which is faster and simpler.

Endpoint where you can download a torrent file have now a custom header
containing the torrent infohash:

The name of the header is: "x-torrust-torrent-infohash"

It is added becuase in the frontend we need the infohash in a cypress
test and this way we do not need to parse the downloaded torrent which
is faster and simpler.
@josecelano josecelano marked this pull request as ready for review August 2, 2023 14:40
Copy link
Contributor

@da2ce7 da2ce7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK f7f76ff

@da2ce7 da2ce7 merged commit cf4fb22 into torrust:develop Aug 2, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants