honor maskValue flag for Authorization header
Hi @oleg-nenashev ,
I was trying to debug a request in Jenkins, set maskValue: false for Authorization header and found it didn't honor this flag.
I understand this change was by https://github.com/jenkinsci/http-request-plugin/pull/22 and for case some security concerns (https://issues.jenkins.io/browse/JENKINS-39744).
I would like to propose an enhancement here which both respects maskValueflag and also masks Authorization header by default.
So I set default maskValue = true in HttpRequestNameValuePair.java constructor. In this case, when user passes maskValue: false in Authorization header, it can be honored correctly.
Please correct me if I missed something or you have further security concerns about this change.
Thanks for your great job done here!
Best regards, Kevin
Sorry, I missed the GitHub update. Was mostly off in Jan-Feb due to health issues. Added to my review queue