瀏覽代碼

Merge pull request #960 from Dialga/patch-4

Register send_http_redirect() in lua
bel2125 4 年之前
父節點
當前提交
d1f37cd7b4
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/mod_lua.inl

+ 1 - 0
src/mod_lua.inl

@@ -2767,6 +2767,7 @@ prepare_lua_environment(struct mg_context *ctx,
 		reg_conn_function(L, "send_file_body", lsp_send_file_body, conn);
 		reg_conn_function(L, "send_http_error", lsp_send_http_error, conn);
 		reg_conn_function(L, "send_http_ok", lsp_send_http_ok, conn);
+		reg_conn_function(L, "send_http_redirect", lsp_send_http_redirect, conn);
 		reg_conn_function(L, "redirect", lsp_redirect, conn);
 	}