Skip to content

http.js 301 redirect fails if website not part of uri

Using wget I see the following redirection happening

https://www.marketwatch.com/news/story.asp?guid=%7B21005575-02D4-D4B5-4572-D215B50BB91B%7D&siteid=rss&rss=1 Connecting to www.marketwatch.com (www.marketwatch.com)|13.249.76.68|:443... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: /story/guid/21005575-02d4-d4b5-4572-d215b50bb91b?siteid=rss&rss=1 [following]

However http.js fails

!JavaScript /sbbs/exec/load/http.js line 64: Error: Unknown scheme! 'undefined' in url:/story/guid/21005575-02d4-d4b5-4572-d2153647dc8d?siteid=rss&rss=1

If I manually check in the browser by adding https://www.marketwatch.com then it works.

http.js needs to be updated to use the source website if it's not provided in the Location header.