Skip to content

Commit 983b09a

Browse files
committed
fix system tests
1 parent 1bfabb2 commit 983b09a

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

src/components/httpRoutes/provider.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ providerRoutes.post(`${SERVICES_API_BASE_PATH}/decrypt`, async (req, res) => {
3636
}
3737
})
3838

39-
providerRoutes.post(`${SERVICES_API_BASE_PATH}/encrypt`, async (req, res) => {
39+
providerRoutes.post(
40+
`${SERVICES_API_BASE_PATH}/encrypt`,
41+
express.raw({ limit: '25mb' }),
42+
async (req, res) => {
4043
try {
4144
const data = req.body.toString()
4245
if (!data) {
@@ -81,7 +84,11 @@ providerRoutes.post(`${SERVICES_API_BASE_PATH}/encrypt`, async (req, res) => {
8184
// Headers
8285
// X-Encrypted-By: our_node_id
8386
// X-Encrypted-Method: aes or ecies
84-
providerRoutes.post(`${SERVICES_API_BASE_PATH}/encryptFile`, async (req, res) => {
87+
providerRoutes.post(
88+
`${SERVICES_API_BASE_PATH}/encryptFile`,
89+
express.raw({ limit: '25mb', type: 'application/octet-stream' }),
90+
express.json(),
91+
async (req, res) => {
8592
const writeResponse = async (
8693
result: P2PCommandResponse,
8794
encryptMethod: EncryptMethod

0 commit comments

Comments
 (0)