Accept header forces application/json type even if server (#10337)

* fix!: accept should not force application JSON 

Generated code offen provides range of accept methods.
This method improperly takes JSON as preferred

Example:
	localVarHTTPHeaderAccepts := []string{"application/zip", "application/json"}

* chore: generated changes
This commit is contained in:
Wojciech Trocki 2021-09-21 05:04:00 +01:00 committed by GitHub
parent 61852a072a
commit 18301d0011
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 0 additions and 16 deletions

View File

@ -101,10 +101,6 @@ func selectHeaderAccept(accepts []string) string {
return "" return ""
} }
if contains(accepts, "application/json") {
return "application/json"
}
return strings.Join(accepts, ",") return strings.Join(accepts, ",")
} }

View File

@ -109,10 +109,6 @@ func selectHeaderAccept(accepts []string) string {
return "" return ""
} }
if contains(accepts, "application/json") {
return "application/json"
}
return strings.Join(accepts, ",") return strings.Join(accepts, ",")
} }

View File

@ -94,10 +94,6 @@ func selectHeaderAccept(accepts []string) string {
return "" return ""
} }
if contains(accepts, "application/json") {
return "application/json"
}
return strings.Join(accepts, ",") return strings.Join(accepts, ",")
} }

View File

@ -112,10 +112,6 @@ func selectHeaderAccept(accepts []string) string {
return "" return ""
} }
if contains(accepts, "application/json") {
return "application/json"
}
return strings.Join(accepts, ",") return strings.Join(accepts, ",")
} }