Skip to content

Commit

Permalink
Updating pet store sample templates
Browse files Browse the repository at this point in the history
  • Loading branch information
tek08 committed Sep 4, 2020
1 parent 1f7404f commit c66926f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ class ApiKeyAuth implements Authentication {
queryParams.add(QueryParam(paramName, value));
} else if (location == 'header' && value != null) {
headerParams[paramName] = value;
} else if (location == 'cookie' && value != null) {
headerParams.update('Cookie', (String existingCookie) {
return "$existingCookie; $paramName=$value";
}, ifAbsent: () => '$paramName=$value');
}
}
}

0 comments on commit c66926f

Please sign in to comment.