Not sure if its a bug or by design or fixed in newer release but the following "always" returns null regardless of the data posted
public void handle(AtmosphereResource r) {
byte[] data = r.getRequest().body().asBytes();
while
r.getRequest().body().asString() returns data as expected.
I thought they might point to the same buffer, but perhaps not ?
Not sure if its a bug or by design or fixed in newer release but the following "always" returns null regardless of the data posted
public void handle(AtmosphereResource r) { byte[] data = r.getRequest().body().asBytes(); while r.getRequest().body().asString() returns data as expected.
I thought they might point to the same buffer, but perhaps not ?
Nettosphere 2.3.0
Thanks for such a great project ! Cheeers, Greg