From c2e85e6b9e4ab41fc391ec42081900d4b40e3e26 Mon Sep 17 00:00:00 2001 From: Lucas Teske Date: Tue, 15 Aug 2017 21:35:23 -0300 Subject: [PATCH] Changed payload signature to the entire body. --- app/components/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/App.js b/app/components/App.js index 6b455ea..eb56164 100644 --- a/app/components/App.js +++ b/app/components/App.js @@ -181,7 +181,7 @@ export default class App extends React.Component { // Signing if (gpgkey !== 'none') { - const signatureData = await sign(graphQLParams.query, gpgkey); + const signatureData = await sign(JSON.stringify(graphQLParams), gpgkey); defaultHeaders.signature = [ `${signatureData.fingerPrint}$${signatureData.hash}$${signatureData.signature}`,