Closed halloffame closed 8 years ago
I tracked it down to this change. It looks like the RackRequest.request_uri
method went from returning @request.url
to @request.fullpath
. Since that is what gets passed into headers.parse_uri
when generating the canonical_string
, I think that is what is causing the issue.
Sorry, that test script was faulty 😞. It looks like the headers.parse_uri
method strips out the host, but only if the host is actually valid. In my tests I didn't include the host and path info, so request.url
was returning "://::0"
, which didn't match the regular expression in parse_uri
so the host wasn't getting parsed out. I updated the tests and now v1.4 validates v1.3 requests. Well done after all 👏 .
We are having trouble upgrading our APIs because it seems the suggested 1.3 to 1.4 migration path doesn't actually work.
I ran some tests to confirm, here are the results: