Removed (now) unneeded table test from get_headers().

This commit is contained in:
Mathew Versluys 2016-05-15 22:35:34 -07:00
parent b9001f0d71
commit e7c855f089

View File

@ -108,8 +108,6 @@ static void curl_init()
static void get_headers(lua_State* L, int headersIndex, struct curl_slist** headers)
{
if (lua_istable(L, headersIndex))
{
lua_pushnil(L);
while (lua_next(L, headersIndex) != 0)
{
@ -117,7 +115,6 @@ static void get_headers(lua_State* L, int headersIndex, struct curl_slist** head
lua_pop(L, 1);
*headers = curl_slist_append(*headers, item);
}
}
}
static CURL* curl_request(lua_State* L, CurlCallbackState* state, const char* url, FILE* fp, int optionsIndex, int progressFnIndex, int headersIndex)