Skip to content

Commit

Permalink
replace "req.get" with "req.header"
Browse files Browse the repository at this point in the history
  • Loading branch information
kettanaito authored and kentcdodds committed Apr 29, 2024
1 parent cdd8165 commit 52d2ce1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ app.get('/rsc/:shipId?', async context => {
})

app.post('/action/:shipId?', async context => {
const serverReference = context.req.get('rsc-action')
const serverReference = context.req.header('rsc-action')
const [filepath, name] = serverReference.split('#')
const action = (await import(filepath))[name]
// Validate that this is actually a function we intended to expose and
Expand Down

0 comments on commit 52d2ce1

Please sign in to comment.