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

Array values are not correctly rendered in URL params #2

Open
anlek opened this issue Sep 4, 2020 · 1 comment
Open

Array values are not correctly rendered in URL params #2

anlek opened this issue Sep 4, 2020 · 1 comment

Comments

@anlek
Copy link

anlek commented Sep 4, 2020

Given PAW params:
image

I get the output of:

axios({
	"method": "GET",
	"url": "http://localhost/...",
	"params": {
		"value[]": "1,2"
	},
	"headers": {
		"Content-Type": "application/json;charset=UTF-8",
	}
})

I expected:

axios({
	"method": "GET",
	"url": "http://localhost/...",
	"params": {
		"value": ["1", "2"]
	},
	"headers": {
		"Content-Type": "application/json;charset=UTF-8",
	}
})

The query works when I use PAW to hit the service or when I use the cURL extension.

Thanks!

@anlek anlek changed the title Array values are not correctly rendered Array values are not correctly rendered on GET requests Sep 4, 2020
@anlek anlek changed the title Array values are not correctly rendered on GET requests Array values are not correctly rendered in URL params Sep 4, 2020
@anlek
Copy link
Author

anlek commented Sep 4, 2020

I noticed this issue is for the URL params rendering, not the JSON body.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant