ArcBees / gwtquery

A jQuery clone for GWT, and much more.
MIT License
85 stars 38 forks source link

AJAX GET query without any paramether should not have "?" character #352

Open maticpetek opened 9 years ago

maticpetek commented 9 years ago

If i do simple Ajax.ajax(Ajax.createSettings().setUrl(“http://page.com/content.xml”).se tDataType("xml").setType("get").setTimeout(3000).setSuccess(…..), without this fix browser will do the call “http://page.com/content.xml?”.

Please replace in Ajax.java if ("GET".equals(settings.getType()) && settings.getDataString() != null) {

with

if ("GET".equals(settings.getType()) && (settings.getDataString() != null) && (!settings.getDataString().isEmpty())) {