Skip to content

Commit f8c51ca

Browse files
committed
In IE 10 and seq., request without body are sent with an undefined body. Issue #1252. Reported by Etienne Griette.
1 parent b8b16f5 commit f8c51ca

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

build/tmpl/text/changes.txt

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ Changes log
44
===========
55

66
- @version-full@ (@release-date@)
7+
- Bugs fixed
8+
- In IE 10 and seq., request without body are sent with an "undefined" body. Issue #1252.
9+
Reported by Etienne Griette.
710

811
- 2.3.8 (12/10/2016)
912
- Bugs fixed

modules/org.restlet/src/org/restlet/engine/adapter/GwtClientCall.java.gwt

+1-8
Original file line numberDiff line numberDiff line change
@@ -213,14 +213,7 @@ public class GwtClientCall extends ClientCall {
213213
public void sendRequest(final org.restlet.Request request,
214214
final org.restlet.Response response,
215215
final Uniform onResponseCallback) throws Exception {
216-
final Representation entity = request.isEntityAvailable() ? request
217-
.getEntity() : null;
218-
if (entity != null) {
219-
String requestData = entity.getText();
220-
if (requestData != null) {
221-
getRequestBuilder().setRequestData("" + requestData);
222-
}
223-
}
216+
getRequestBuilder().setRequestData(request.isEntityAvailable() ? request.getEntity().getText() : null);
224217

225218
// Set the request headers
226219
for (final org.restlet.data.Header header : getRequestHeaders()) {

0 commit comments

Comments
 (0)