Skip to content

Commit

Permalink
Merge branch 'master' into pr/134
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 committed Jul 23, 2024
2 parents 17d080e + b47fbee commit eaec1fc
Show file tree
Hide file tree
Showing 4 changed files with 30,119 additions and 11,289 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x]
node-version: [12.x]
services:
redis:
image: redis
Expand Down
12 changes: 12 additions & 0 deletions lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,17 @@ module.exports = (testRoute) => {
app.use(require('express-sslify').HTTPS({ trustProtoHeader: true }))
}

app.use((req, res, next) => {
var buf = ''
req.on('data', (chunk) => {
buf += chunk
})
req.on('end', () => {
req.rawdata = buf
})
next()
})

app.use(cors())
app.use(express.json())
app.use(express.urlencoded({ extended: true }))
Expand Down Expand Up @@ -100,6 +111,7 @@ module.exports = (testRoute) => {
payload: {
...req.headers,
body: req.body,
rawdata: req.rawdata,
query: req.query,
timestamp: Date.now()
}
Expand Down
Loading

0 comments on commit eaec1fc

Please sign in to comment.