ontodev / droid

DROID Reminds us that Ordinary Individuals can be Developers
BSD 3-Clause "New" or "Revised" License
4 stars 1 forks source link

DROID should accept HTTP responses from CGI scripts that do not include a Content-Type, such as 30x redirects #138

Closed jamesaoverton closed 1 year ago

jamesaoverton commented 1 year ago

We are currently requiring a "Content-Type" in the response header. When Nanobot returns a valid 308 response, which does not include a Content-Type, DROID currently logs it to console, but DROID should return the 308 response.

According to the spec https://datatracker.ietf.org/doc/html/rfc3875#section-6 I think we should require any one of the CGI-headers: "Content-Type", "Location", or "Status".