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

Add object in options will got an error #232

Open
dashuaic opened this issue Jan 26, 2024 · 1 comment
Open

Add object in options will got an error #232

dashuaic opened this issue Jan 26, 2024 · 1 comment

Comments

@dashuaic
Copy link

I added headers in options, will got an error
Invalid header structure %j, it should be an array

import {loadTest} from 'loadtest'

const options = {
    url: 'http://localhost:8000',
    maxRequests: 1000,
    **headers : {
       "name": "admin"
   }**
}
const result = await loadTest(options)
result.show()
console.log('Tests run successfully')
@alexfernandez
Copy link
Owner

Hi! Thanks for reporting, solved in 8.0.8 just released. Let me know how it goes!

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