소스 검색

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);
 	}