Closed moreymat closed 4 years ago
I'm curious if we shouldn't try to fix normalize_url instead to make sure it generates valid URLs in these cases...
@pudo in my case, the URLs generated by normalize_url
were syntactically valid but resulting in a 404-like page from the server. I don't see how one could infer or anticipate this, but I'm no expert in web programming...
This PR makes
normalize_url
truly optional to solve issue #87 .Concretely, the
parse
operation now accepts a paramnormalize_url: False
that disables the normalization of the URLs parsed in a webpage. The second change is that thenormalize_url
param forfetch
now affects, in addition to the request URL, the response URL (viamemorious.logic.http.ContextHttpResponse
).