fix link header: improved detection of self-referencing hrefs from proxies