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