diff options
| author | Diego Nehab <diego.nehab@gmail.com> | 2016-02-11 11:01:57 -0200 |
|---|---|---|
| committer | Diego Nehab <diego.nehab@gmail.com> | 2016-02-11 11:01:57 -0200 |
| commit | 280e1d68a62ebf65b4526e300813e6d805216ea7 (patch) | |
| tree | 0e4bb188501594fdb274bbe88dc600558ecaed12 /src/mbox.lua | |
| parent | 83880dbed77f9a0a3627bce2e7bfbe1b862e091d (diff) | |
| parent | 91928813466cd10b1b4e6f118f2decfb3b2aba33 (diff) | |
| download | luasocket-280e1d68a62ebf65b4526e300813e6d805216ea7.tar.gz luasocket-280e1d68a62ebf65b4526e300813e6d805216ea7.tar.bz2 luasocket-280e1d68a62ebf65b4526e300813e6d805216ea7.zip | |
Merge pull request #157 from mpeterv/ltn12-lua53
Fix error in ltn12 under Lua 5.3
Diffstat (limited to 'src/mbox.lua')
| -rw-r--r-- | src/mbox.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbox.lua b/src/mbox.lua index 7724ae2..ed9e781 100644 --- a/src/mbox.lua +++ b/src/mbox.lua | |||
| @@ -61,7 +61,7 @@ function _M.parse_from(from) | |||
| 61 | end | 61 | end |
| 62 | 62 | ||
| 63 | function _M.split_mbox(mbox_s) | 63 | function _M.split_mbox(mbox_s) |
| 64 | mbox = {} | 64 | local mbox = {} |
| 65 | mbox_s = string.gsub(mbox_s, "\r\n", "\n") .."\n\nFrom \n" | 65 | mbox_s = string.gsub(mbox_s, "\r\n", "\n") .."\n\nFrom \n" |
| 66 | local nj, i, j = 1, 1, 1 | 66 | local nj, i, j = 1, 1, 1 |
| 67 | while 1 do | 67 | while 1 do |
