Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
maticpetek opened this issue Apr 26, 2015 · 0 comments
Open
Labels

Comments

@maticpetek
Copy link

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())) {

@olafleur olafleur added the bug label Sep 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants