From 740b91533dadee1cfa4f69a16d5a2528ac5c4375 Mon Sep 17 00:00:00 2001 From: Cloud Wu Date: Mon, 9 Aug 2021 19:31:32 +0800 Subject: [PATCH] Fix #1452 --- lualib/http/internal.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lualib/http/internal.lua b/lualib/http/internal.lua index 5b008920..db0ea018 100644 --- a/lualib/http/internal.lua +++ b/lualib/http/internal.lua @@ -1,6 +1,5 @@ local table = table local type = type -local sockethelper = require "http.sockethelper" local M = {} @@ -171,7 +170,7 @@ function M.request(interface, method, host, url, recvheader, header, content) local tmpline = {} local body = M.recvheader(read, tmpline, "") if not body then - error(sockethelper.socket_error) + error("Recv header failed") end local statusline = tmpline[1]