Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:meetup/meetup-web-platform
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcgahan committed Aug 17, 2017
2 parents b3c0e5a + 436cfed commit dccfe2b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/renderers/server-render.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,12 @@ const makeRenderer = (
raw: { req },
} = request;

// request protocol might be different from original request that hit proxy
// we want to use the proxy's protocol
// request protocol and host might be different from original request that hit proxy
// we want to use the proxy's protocol and host
const requestProtocol =
headers['x-forwarded-proto'] || connection.info.protocol;
const host = `${requestProtocol}://${info.host}`;
const domain = headers['x-forwarded-host'] || info.host;
const host = `${requestProtocol}://${domain}`;
const apiUrl = '/mu_api';

// create the store
Expand Down

0 comments on commit dccfe2b

Please sign in to comment.