Browse Source

Parameter order has been changed

bel 9 years ago
parent
commit
63602c5ac6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/mod_lua.inl

+ 1 - 1
src/mod_lua.inl

@@ -833,7 +833,7 @@ lsp_get_response_code_text(lua_State *L)
 			/* If the first argument is a number,
 			/* If the first argument is a number,
 			   convert it to the corresponding text. */
 			   convert it to the corresponding text. */
 			code = lua_tonumber(L, 1);
 			code = lua_tonumber(L, 1);
-			text = mg_get_response_code_text((int)code, NULL);
+			text = mg_get_response_code_text(NULL, (int)code);
 			if (text)
 			if (text)
 				lua_pushstring(L, text);
 				lua_pushstring(L, text);
 			return text ? 1 : 0;
 			return text ? 1 : 0;