Add object in options will got an error
dashuaic opened this issue · 1 comments
dashuaic commented
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 commented
Hi! Thanks for reporting, solved in 8.0.8 just released. Let me know how it goes!