You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, I’m aware that it always returns 200. This is intentional because if I return 404 along with the "not found" image, many Nostr clients display an error on the screen instead of the fallback image. So far, I haven’t found another way to "force" this image in all scenarios.
I also know that in the case of a file, video, or other file types, this behavior is not ideal either. For version 0.7.0, a dynamically generated "not found" file will be returned for each accepted file type. I’m experimenting with it.
Yeah, maybe an option in Setup to choose the behaviour, because right now there isn't a way to know if a file is present in the server in a programatical way, right?
It looks like an easy fix. Change a number here. This might not be desirable for all users but if it's helpful for you, @ktecho, ...
As for the project merging this: I think it should signal 404 or provide an endpoint that allows checking availability of files. As @ktecho implied, as a compromise it could return the 404-image with 200 status on GET but the 404 status on HEAD.
To Reproduce
Trying to do this:
either with HEAD of GET will return 200-OK. I think the problem is that the server is returning a picture correctly:
The text was updated successfully, but these errors were encountered: