build: upgrade to Go 1.18.1 (#373)

This commit is contained in:
Dane Strandboge
2022-04-13 15:50:35 -05:00
committed by GitHub
parent 30e64c5cc9
commit 35279515e9
11 changed files with 43 additions and 41 deletions

View File

@ -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"