forked from loafle/openapi-generator-original
This reverts commit 18301d0011.
This commit is contained in:
@@ -101,6 +101,10 @@ func selectHeaderAccept(accepts []string) string {
|
||||
return ""
|
||||
}
|
||||
|
||||
if contains(accepts, "application/json") {
|
||||
return "application/json"
|
||||
}
|
||||
|
||||
return strings.Join(accepts, ",")
|
||||
}
|
||||
|
||||
|
||||
@@ -109,6 +109,10 @@ func selectHeaderAccept(accepts []string) string {
|
||||
return ""
|
||||
}
|
||||
|
||||
if contains(accepts, "application/json") {
|
||||
return "application/json"
|
||||
}
|
||||
|
||||
return strings.Join(accepts, ",")
|
||||
}
|
||||
|
||||
|
||||
@@ -94,6 +94,10 @@ func selectHeaderAccept(accepts []string) string {
|
||||
return ""
|
||||
}
|
||||
|
||||
if contains(accepts, "application/json") {
|
||||
return "application/json"
|
||||
}
|
||||
|
||||
return strings.Join(accepts, ",")
|
||||
}
|
||||
|
||||
|
||||
@@ -112,6 +112,10 @@ func selectHeaderAccept(accepts []string) string {
|
||||
return ""
|
||||
}
|
||||
|
||||
if contains(accepts, "application/json") {
|
||||
return "application/json"
|
||||
}
|
||||
|
||||
return strings.Join(accepts, ",")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user