Skip to content

Commit

Permalink
Fix discovery of self-closing X-XRDS-Location meta tag
Browse files Browse the repository at this point in the history
  • Loading branch information
fsgmhoward authored May 17, 2020
1 parent 37e370a commit edec759
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yadis_discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func findMetaXrdsLocation(input io.Reader) (location string, err error) {
switch tt {
case html.ErrorToken:
return "", tokenizer.Err()
case html.StartTagToken, html.EndTagToken:
case html.StartTagToken, html.EndTagToken, html.SelfClosingTagToken:
tk := tokenizer.Token()
if tk.Data == "head" {
if tt == html.StartTagToken {
Expand Down

0 comments on commit edec759

Please sign in to comment.