Ghost/ghost/core/test/unit/server
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
..
adapters Removed bluebird dependency from unit tests in core (#16096) 2023-01-23 11:23:48 +00:00
data Removed bluebird dependency from unit tests in core (#16096) 2023-01-23 11:23:48 +00:00
lib Added URL transform for image cards in Lexical documents (#15890) 2022-11-29 16:57:01 +00:00
models Removed bluebird dependency from unit tests in core (#16096) 2023-01-23 11:23:48 +00:00
services Checked for existence of page via a network request 2023-01-24 16:17:40 +07:00
web Fixed CORS vary header modification 2022-11-03 11:16:13 +08:00
notify.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
overrides.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00