Ghost/ghost/core/test/unit
Fabien "egg" O'Carroll 9df131ee5a Checked for existence of page via a network request
refs https://github.com/TryGhost/Team/issues/2466

Now that we're checking for resources at the URL and rejecting if
there isn't one found, we want to make sure that we can handle pages
which are not a resource.

The idea here is to make a HEAD request to determine whether or not
the page exists. We don't need the full response so HEAD saves us some
bandwidth and we allow both 2xx and 3xx status codes because Ghost has
redirects to add missing trailing slashes, which may not be present in
the URL we're passed.
2023-01-24 16:17:40 +07:00
..
api/canary Removed bluebird dependency from unit tests in core (#16096) 2023-01-23 11:23:48 +00:00
frontend Removed bluebird dependency from unit tests in core (#16096) 2023-01-23 11:23:48 +00:00
server Checked for existence of page via a network request 2023-01-24 16:17:40 +07:00
shared Improved Sentry server side error reporting 2022-11-23 12:37:24 +00:00