You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is always returned, even for requests with Accept: application/json. At this point, this is somewhat academic; but would become common when the domains are switched, and www.howsmytls.com becomes canonical.
Perhaps returning an empty JSON object {} would be useful here, or perhaps populating the Error field: { error: "Moved permanently: https://www.howsmyssl.com/a/check" } - the 301 response should be sufficient for a redirect, but if the redirect also returns a body, it probably should be in the expected MIME type.
The text was updated successfully, but these errors were encountered:
jmhodges
changed the title
Redirect returns text/html even on the JSON endpoint
Redirect from howsmytls.com to howsmyssl.com returns text/html even on the JSON endpoint
Jul 8, 2023
The redirect response at https://www.howsmytls.com/a/check returns
This is always returned, even for requests with
Accept: application/json
. At this point, this is somewhat academic; but would become common when the domains are switched, and www.howsmytls.com becomes canonical.Perhaps returning an empty JSON object
{}
would be useful here, or perhaps populating the Error field:{ error: "Moved permanently: https://www.howsmyssl.com/a/check" }
- the 301 response should be sufficient for a redirect, but if the redirect also returns a body, it probably should be in the expected MIME type.The text was updated successfully, but these errors were encountered: