Skip to content

Commit

Permalink
removes debug console statements from generator fetches
Browse files Browse the repository at this point in the history
  • Loading branch information
davelandry committed Feb 22, 2023
1 parent 31da017 commit 8b3e05e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/cms/src/api/mortarRoute.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,6 @@ module.exports = function(app) {

const createGeneratorFetch = (req, locale, r, attr) => {
// Generators use <id> as a placeholder. Replace instances of <id> with the provided id from the URL
console.log("protocol", req.protocol);
console.log("encrypted", req.connection.encrypted);
console.log("secure", req.secure);
const origin = `${ req.protocol }://${ req.headers.host }`;
let url = urlSwap(r, {...req.params, ...cache, ...attr, ...canonVars, locale});
if (url.indexOf("http") !== 0) {
Expand Down

0 comments on commit 8b3e05e

Please sign in to comment.