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
open_search.xml malformed #239
Comments
I'm facing the same issue with EDIT: the bug is due to use of |
FWIW future bug reviewers, https://search.nix.gsc.io/open_search.xml works fine because I serve a static version of open_search.xml via nginx, instead of passing that request to Hound: https://github.com/grahamc/network/blob/master/zoidberg/default.nix#L155-L162 |
@sahildua2305 I can't actually assign you using github's tools (probably due to some settings), but feel free to open a PR with the fix, assign me to review. |
open_search.xml file was being served using html/template package and since it doesn't know about xml contexts, it changes the first character of xml template "<" into "<". Now, we use two different packages: - html/template - for parsing html template files - text/template - for parsing text or xml template files Closes #239
The templating seems to substitute the
<
in the xml version declaration with<
. As a result, the search provider cannot be added in firefox.Example: https://search.nix.gsc.io/open_search.xml
Adding the search provider fails in firefox with the cryptic error message
The text was updated successfully, but these errors were encountered: