Skip to content

Commit e9ac10f

Browse files
committed
Fix. Unset trailer data.
1 parent 43c864a commit e9ac10f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lceasy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -975,7 +975,7 @@ static int lcurl_easy_unset_TRAILERFUNCTION(lua_State *L){
975975
if(code != CURLE_OK){
976976
return lcurl_fail_ex(L, p->err_mode, LCURL_ERROR_EASY, code);
977977
}
978-
curl_easy_setopt(p->curl, CURLOPT_TRAILERFUNCTION, NULL);
978+
curl_easy_setopt(p->curl, CURLOPT_TRAILERDATA, NULL);
979979

980980
luaL_unref(L, LCURL_LUA_REGISTRY, p->trailer.cb_ref);
981981
luaL_unref(L, LCURL_LUA_REGISTRY, p->trailer.ud_ref);

0 commit comments

Comments
 (0)