Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yeliex/next-workers-protocol-bug


https://github.com/yeliex/next-workers-protocol-bug

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# next-workers-protocol-bug

## Reproduce

```shell
# start server
npm run dev
# OR
npm run build && npm start
# OR set `next.config.js`/output='standalone'
npm run build && node .next/standalone/server,js

# curl
curl -s -o /dev/null -vv -H "x-forwarded-proto:https" http://localhost:3000
# OR request api
curl -s -o /dev/null -vv -H "x-forwarded-proto:https" http://localhost:13000/api/test
```

**EXPECT**
`request.nextUrl.protocol => http`

**GOT**
`request.nextUrl.protocol => https`