Hi,
I’m implementing a custom SignatureCalculator to generate a signature (similar to HMAC).
The problem I’ve encountered is that the request body is always null in the Request object which is passed to the calculateAndAddSignature method.
Has anyone come across this? I noticed that somebody did experience a similar problem over on the Play Framework group but no resolution was given there - so perhaps it’s a bug with AsyncHttpClient as opposed to Gatling? → https://github.com/playframework/playframework/issues/5996
@ Stephane: Do you have any suggestions? Is this a bug? I can raise if so.
Cut-down calculateAndAddSignature function:
@Override
public void calculateAndAddSignature(Request request, RequestBuilderBase<?> requestBuilder) {
System.err.println("Body → " + request.getStringData());
}
Output:
Body → null
Thanks in advance,
Barry