Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
fix(logging) encode try-list as json and no longer use new-line
Browse files Browse the repository at this point in the history
New-line characters in the logging are impossible to parse
correctly so should be prevented.

fixes #52
  • Loading branch information
Tieske committed Aug 23, 2018
1 parent 691cbe8 commit 154b7fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/resty/dns/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,8 @@ local try_list_mt = {
end
l[i]="\n"
end
return table_concat(l)
-- concatenate result and encode as json array
return '[ "' .. table_concat(l):gsub('"',"'"):gsub("\n",'", "') .. '" ]'
end
}

Expand Down

0 comments on commit 154b7fd

Please sign in to comment.