Skip to content

Commit

Permalink
correction for the comment: https://github.com/zaproxy/community-scri…
Browse files Browse the repository at this point in the history
…pts/pull/437/files#r1494288665

Signed-off-by: Michał Walkowski <[email protected]>
  • Loading branch information
mwalkowski committed Feb 19, 2024
1 parent 88a094a commit 81d1891
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion httpsender/RsaEncryptPayloadForZap.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def sendingRequest(msg, initiator, helper):
encrypted_body = encrypt_body(body)
new_payload = PAYLOAD.replace(PAYLOAD_PLACEHOLDER, encrypted_body)
msg.setRequestBody(new_payload)
msg.getRequestHeader().setHeader("content-length", str(len(new_payload)))
msg.getRequestHeader().setContentLength(msg.getRequestBody().length())


def responseReceived(msg, initiator, helper):
Expand Down

0 comments on commit 81d1891

Please sign in to comment.