sjdirect / abot

Cross Platform C# web crawler framework built for speed and flexibility. Please star this project! +1.
Apache License 2.0
2.23k stars 555 forks source link

Exception is thrown when redirect URI is relative #229

Closed chjahnert closed 3 years ago

chjahnert commented 3 years ago

The WebCrawler.ExtractRedirectUri(...) method may get the redirect location from the Location header. If the value of the Location header is a relative URI, accessing the AbsoluteUri property throws an exception. Consider using either ToString() or OriginalString to get the URI.

sjdirect commented 3 years ago

fixed by https://github.com/sjdirect/abot/commit/62a2e3e8dc6a1c4753daf2003442f0767fe61ca4 and available in nuget 2.0.68