We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e561e1 commit 6d4d81bCopy full SHA for 6d4d81b
modules/swagger-codegen/src/main/resources/Java/auth/ApiKeyAuth.mustache
@@ -55,9 +55,9 @@ public class ApiKeyAuth implements Authentication {
55
} else {
56
value = apiKey;
57
}
58
- if (location == "query") {
+ if ("query".equals(location)) {
59
queryParams.add(new Pair(paramName, value));
60
- } else if (location == "header") {
+ } else if ("header".equals(location)) {
61
headerParams.put(paramName, value);
62
63
0 commit comments