Skip to content

Commit

Permalink
Fix default EOL handling style
Browse files Browse the repository at this point in the history
  • Loading branch information
wingo committed May 3, 2018
1 parent 7e45ce3 commit 1a33991
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/stream.lua
Expand Up @@ -271,7 +271,7 @@ end

function Stream:read_line(eol_style) -- 'discard' or 'keep'
local head = {}
local add_lf = assert(({discard=0, keep=1})[eol_style])
local add_lf = assert(({discard=0, keep=1})[eol_style or 'discard'])
while true do
if self.rx:is_empty() then
if self:fill_rx_buffer() == 0 then
Expand Down

0 comments on commit 1a33991

Please sign in to comment.