Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[legacy-framework] Set x-powered-by header to Blitz.js #2586

Merged
merged 24 commits into from
Jul 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
a651c0b
don't throw an error if checkYarn is null or checkYarn.stdout is null…
roshan-sama Mar 1, 2021
55c6afa
make sure to check if this version is less than the latest version
roshan-sama Mar 1, 2021
6399d86
Merge pull request #1 from blitz-js/canary
roshan-sama Mar 5, 2021
db307ca
Merge pull request #2 from blitz-js/canary
roshan-sama Mar 13, 2021
71285b5
fix forgotpassword test template, sync auth example tests
Mar 13, 2021
cd2bdca
Merge branch 'canary' into canary
flybayer Mar 15, 2021
8ea14c9
revert to ensure monorepo tests work
roshan-sama Mar 15, 2021
88de5c5
revert to original password and index tests
Mar 17, 2021
321e963
Merge branch 'canary' of https://github.com/Roesh/blitz into canary
Mar 17, 2021
2e17e47
remove merge reference
roshan-sama Mar 17, 2021
650d285
fix merge issue
Mar 17, 2021
b484fe7
Merge branch 'canary' of https://github.com/Roesh/blitz into canary
Mar 17, 2021
8e78e4b
Merge pull request #3 from blitz-js/canary
roshan-sama Mar 30, 2021
97ad3be
Merge branch 'canary' of https://github.com/Roesh/blitz into canary
Mar 30, 2021
e4ab177
Quirrel recipe: start > dev, double quote command
Mar 30, 2021
5d8e189
Merge pull request #4 from blitz-js/canary
roshan-sama Apr 26, 2021
3a09100
add Suspense boundary
Apr 26, 2021
db6c56d
Merge branch 'canary' into canary
flybayer Apr 27, 2021
79a7885
Update packages/generator/templates/app/app/pages/_app.tsx
flybayer Apr 27, 2021
4fdd461
Merge branch 'blitz-js:canary' into canary
roshan-sama May 12, 2021
9797dfa
Merge branch 'blitz-js:canary' into canary
roshan-sama Jul 21, 2021
74278d2
send "blitz.js" in x-powered-by header
roshan-sama Jul 21, 2021
115a60e
Update test for powered-by-header
roshan-sama Jul 21, 2021
ba3e059
Update test to check for x-powered-by
roshan-sama Jul 21, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nextjs/packages/next/next-server/server/send-payload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function sendPayload(
}

if (poweredByHeader && type === 'html') {
res.setHeader('X-Powered-By', 'Next.js')
res.setHeader('X-Powered-By', 'Blitz.js')
}

const etag = generateEtags ? generateETag(payload) : undefined
Expand Down
2 changes: 1 addition & 1 deletion nextjs/test/integration/config/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe('Configuration', () => {
it('should disable X-Powered-By header support', async () => {
const url = `http://localhost:${context.appPort}/`
const header = (await fetch(url)).headers.get('X-Powered-By')
expect(header).not.toBe('Next.js')
expect(header).not.toBe('Blitz.js')
})

test('renders css imports', async () => {
Expand Down
2 changes: 1 addition & 1 deletion nextjs/test/integration/production/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ describe('Production Usage', () => {
const url = `http://localhost:${appPort}/`
const header = (await fetch(url)).headers.get('X-Powered-By')

expect(header).toBe('Next.js')
expect(header).toBe('Blitz.js')
})

it('should render 404 for routes that do not exist', async () => {
Expand Down