Skip to content

Commit

Permalink
Merge pull request #13 from rugger-sr/fix_authorization_parameter
Browse files Browse the repository at this point in the history
X-Cybozu-Authorization のbase64エンコーディングを修正
  • Loading branch information
jue58 authored Apr 17, 2018
2 parents ff72756 + ab646cf commit 141923d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kintone/api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class CommandAccessor

def build_headers(user, password)
if password # パスワード認証
{ 'X-Cybozu-Authorization' => Base64.encode64("#{user}:#{password}") }
{ 'X-Cybozu-Authorization' => Base64.strict_encode64("#{user}:#{password}") }
else # APIトークン認証
{ 'X-Cybozu-API-Token' => user }
end
Expand Down

0 comments on commit 141923d

Please sign in to comment.