Skip to content

Commit

Permalink
[httpclient] Catch a nil response. Thanks Harald!
Browse files Browse the repository at this point in the history
  • Loading branch information
icarus75 committed Aug 18, 2011
1 parent 52ad1f5 commit fe9a6be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openwrt/package/luci/libs/httpclient/luasrc/httpclient.lua
Expand Up @@ -132,7 +132,7 @@ function create_persistent()
status, response, buffer, sock = request_raw(uri, options, sock)

if not status then
uri, options = yield(nil, response, buffer)
uri, options = yield(nil, response or "", buffer)

elseif status ~= 200 and status ~= 206 then
if status == 204 then
Expand Down

0 comments on commit fe9a6be

Please sign in to comment.