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

.well-known/dat trouble #26

Open
da2x opened this issue Oct 23, 2018 · 0 comments
Open

.well-known/dat trouble #26

da2x opened this issue Oct 23, 2018 · 0 comments

Comments

@da2x
Copy link
Contributor

da2x commented Oct 23, 2018

A number of web servers return 200 OK when they mean to return 404 Not Found. These end up producing error pages like this:

Error: Invalid .well-known/dat record, must provide a dat://{key} url

This test should probably check to see if a Dat URI is provided in the returned file or not and only return an error if the Dat URI is malformed.

if (resp.ok) {

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

1 participant