Closed escowles closed 7 years ago
It may be best to update the ldp gem to accept 307 Temporary Redirect as successful for a head request: https://github.com/projecthydra/ldp/blob/master/lib/ldp/client/methods.rb#L116
Just updating ldp to accept 307 as successful fixes the AF errors: https://github.com/projecthydra/ldp/compare/master...escowles:307-redirect
Though I know I'm missing something because that method doesn't take redirects into account at all, and I don't see how Faraday is either (is it treating 307 redirects differently from 302/303?)
Thoughts @jcoyne @cbeer?
Fedora 4.6 returned a 200 OK response when doing a HEAD on an external content resource, but [4.7.0-RC-1]((https://github.com/fcrepo4/fcrepo4/releases/tag/fcrepo-4.7.0-RC-1) returns a 307 Temporary Redirect instead.
This change results in two test failures (error messages below), so we should update to handle the 307 response code: