hofstadter-io / frisby

API testing framework inspired by frisby-js
MIT License
278 stars 27 forks source link

Fix for nil error when calling SetParam on frisyb.Create(...) #24

Closed lakshmisampath closed 7 years ago

lakshmisampath commented 7 years ago

How to recreate: frisby.Create("Test GET /resource?type=xyz").         SetHeader("Content-Type", "application/json").         Get(GetAbsURL("/resource")).         SetParam(“type”, “xyz”). Send()

Error: panic: assignment to entry in nil map [recovered] panic: assignment to entry in nil map

verdverm commented 7 years ago

thanks!