Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
phenchaw committed Oct 6, 2023
1 parent 525ce4c commit bae259d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/payroll_hero/api/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def initialize(token, base_url, cookies = {})
headers = {
'User-Agent' => user_agent_string,
}
headers.merge!({ 'Cookie' => cookies.map { |key, value| "#{key}=#{value}" }.join('; ') }) unless cookies.empty?
headers.merge!({ 'Cookie' => cookies.map { |key, value| "#{key}=#{value}" }.join('; ') }) unless cookies.nil? || cookies.empty?
params = {
token: token,
}
Expand Down

0 comments on commit bae259d

Please sign in to comment.