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

Resource download missing header #36

Open
makkmarci13 opened this issue Apr 3, 2021 · 3 comments
Open

Resource download missing header #36

makkmarci13 opened this issue Apr 3, 2021 · 3 comments

Comments

@makkmarci13
Copy link

Hello,
I use spiget for search and download plugins in my mcpanel, but i noticed that the Content-Disposition was removed from the download response headers, and this cause that i can't get the filename. Anybody has any idea where can i get the filename?
Thanks!

@InventivetalentDev
Copy link
Member

The download endpoint was changed to redirect to the new cdn service. Follow that redirect and it should give you a filename again, although you really shouldn't be relying on that too much.

@makkmarci13
Copy link
Author

It fallows the redirect, because if i set a static name, it can download it. Is there an api endpoint which provide the jar name? Or how will be better?

@InventivetalentDev
Copy link
Member

InventivetalentDev commented Apr 3, 2021

Is there an api endpoint which provide the jar name

No. Spiget has no idea what the original file name is. The previous download route used to literally set it to $name#$id#type, so just use the name from the cdn (which should be the resource id) or set it to whatever you'd like, since it really doesn't matter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants