Skip to content

Commit 9c3226a

Browse files
committed
fixed supportHeaderParams issue
1 parent 3a17003 commit 9c3226a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/swagger.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/swagger.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class SwaggerApi
122122
# Suffix a passed url with api_key
123123
#
124124
suffixApiKey: (url) ->
125-
if @api_key? and jQuery.trim(@api_key).length > 0 and url? and (@supportHeaderParams? or @supportHeaderParams is false)
125+
if @api_key? and jQuery.trim(@api_key).length > 0 and url? and (@supportHeaderParams is null or @supportHeaderParams is false)
126126
sep = if url.indexOf('?') > 0 then '&' else '?'
127127
url + sep + @apiKeyName + '=' + @api_key
128128
else

0 commit comments

Comments
 (0)