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

json file format error #4

Closed
rclijia opened this issue Feb 5, 2020 · 2 comments
Closed

json file format error #4

rclijia opened this issue Feb 5, 2020 · 2 comments

Comments

@rclijia
Copy link

rclijia commented Feb 5, 2020

request.json example file format error!

[
{
"scheme": "http",
"host": "www.example.com",
"port": 80,
"method": "GET",
"path": "/",
"delay": {
"min": 1000,
"max": 2000, #here
},
"keep-alive-requests": 100,
"clients": 2, #here
},
{
"scheme": "https",
"tls-session-reuse": true,
"host": "example.com",
"port": 443,
"method": "POST",
"path": "/",
"headers": {
"Content-Type": "application/x-www-form-urlencoded",
},
"body": {
"content": "name=user&email=user@example.com",
},
"delay": {
"min": 3000,
"max": 5000,
},
"keep-alive-requests": 1,
"clients": 3,
}
]

@jmencak
Copy link
Owner

jmencak commented Feb 5, 2020

Thank you for your report, @rclijia. Fixed by 3b32b87

The JSON parser used in mb is more lenient to the extra commas, and the old example would still work in mb. Please consider closing this issue if you feel it has been fixed.

@jmencak
Copy link
Owner

jmencak commented Jun 9, 2021

Fixed by 3b32b87, closing.

@jmencak jmencak closed this as completed Jun 9, 2021
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

2 participants