Skip to content

Commit

Permalink
Changed payload signature to the entire body.
Browse files Browse the repository at this point in the history
  • Loading branch information
racerxdl committed Aug 16, 2017
1 parent 5d4b1ca commit c2e85e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
Expand Down

0 comments on commit c2e85e6

Please sign in to comment.