astro-ghostcms/.pnpm-store/v3/files/41/9347b0d61e33aaf28c7bf51bbb2...

14 lines
321 B
Plaintext

import { AstroError, AstroErrorData } from "../errors/index.js";
function getRedirectLocationOrThrow(headers) {
let location = headers.get("location");
if (!location) {
throw new AstroError({
...AstroErrorData.RedirectWithNoLocation
});
}
return location;
}
export {
getRedirectLocationOrThrow
};