Skip to content

Fix http_put_low to send the payload as a JSON-encoded body, not a www-form encoding

Fixes PUTs to actually work; I can't see how the existing policy_configure was ever going to work (:body isn't used in http_put), and user_chpasswd is generally a bit of a mystery.

Tested and confirmed with a monkey-patched implementation of scan_configure: def scan_configure(scan_id, payload) http_put(:uri => "/scans/#{scan_id}", :body => payload, :fields => header) end

which I can put into a MR later if desired.

Merge request reports