[QS]: remove miss spelling
This commit is contained in:
parent
970b2eacbb
commit
0c12ac9c69
|
@ -1,5 +1,5 @@
|
||||||
// Package with supporting functionality to run the microservice
|
// Package with supporting functionality to run the microservice
|
||||||
package runtime
|
package runtime
|
||||||
|
|
||||||
// some functionality to handle it in background which is intermeshed
|
// some mingled functionality to handle in background
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,7 @@ func NewSession(router *goji.Mux) *Request {
|
||||||
return &Request{router: router}
|
return &Request{router: router}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Function to send a request to the router and recieve the api's answer
|
// Function to send a request to the router and receive the api's answer
|
||||||
func (r *Request) JSONRequest(method string, url string, body interface{}) (jsonResult interface{}, res *http.Response) {
|
func (r *Request) JSONRequest(method string, url string, body interface{}) (jsonResult interface{}, res *http.Response) {
|
||||||
jsonObj, _ := json.Marshal(body)
|
jsonObj, _ := json.Marshal(body)
|
||||||
req, _ := http.NewRequest(method, url, bytes.NewReader(jsonObj))
|
req, _ := http.NewRequest(method, url, bytes.NewReader(jsonObj))
|
||||||
|
|
Reference in New Issue