build: upgrade to Go 1.18.1 (#373)
This commit is contained in:
@ -508,7 +508,7 @@ func detectContentType(body interface{}) string {
|
||||
kind := reflect.TypeOf(body).Kind()
|
||||
|
||||
switch kind {
|
||||
case reflect.Struct, reflect.Map, reflect.Ptr:
|
||||
case reflect.Struct, reflect.Map, reflect.Pointer:
|
||||
contentType = "application/json; charset=utf-8"
|
||||
case reflect.String:
|
||||
contentType = "text/plain; charset=utf-8"
|
||||
|
Reference in New Issue
Block a user