Skip to content

Commit

Permalink
chore: set content type
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalsadhu committed Nov 14, 2024
1 parent fa559f9 commit 9d69703
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion example/streaming/podlets/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ app.get('/css', (req, res) => {
});

app.get('/', async (req, res) => {
// send headers
res.set('Content-Type', 'text/html');
res.sendHeaders();

await new Promise((res) => setTimeout(res, 2200));
Expand Down
2 changes: 1 addition & 1 deletion example/streaming/podlets/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ app.get('/css', (req, res) => {
});

app.get('/', async (req, res) => {
// send headers
res.set('Content-Type', 'text/html');
res.sendHeaders();

await new Promise((res) => setTimeout(res, 100));
Expand Down
2 changes: 1 addition & 1 deletion example/streaming/podlets/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ app.get('/css', (req, res) => {
});

app.get('/', async (req, res) => {
// send headers
res.set('Content-Type', 'text/html');
res.sendHeaders();

await new Promise((res) => setTimeout(res, 100));
Expand Down
2 changes: 1 addition & 1 deletion example/streaming/podlets/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ app.get('/css', (req, res) => {
});

app.get('/', async (req, res) => {
// send headers
res.set('Content-Type', 'text/html');
res.sendHeaders();

// imagine this is your slow database call
Expand Down
2 changes: 1 addition & 1 deletion example/streaming/podlets/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ app.get('/css', (req, res) => {
});

app.get('/', async (req, res) => {
// send headers
res.set('Content-Type', 'text/html');
res.sendHeaders();

await new Promise((res) => setTimeout(res, 3200));
Expand Down

0 comments on commit 9d69703

Please sign in to comment.