append signature in the signed request accordingly

append signature accordingly, only if the request contains signature and
"withSignature" is true.