Browse Source

Fix path field in url:to_table method.

tags/1.0.0
Vsevolod Stakhov 9 years ago
parent
commit
5e6082be92
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/lua/lua_url.c

+ 1
- 1
src/lua/lua_url.c View File

@@ -363,7 +363,7 @@ lua_url_to_table (lua_State *L)
lua_settable (L, -3);
}

if (u->hostlen > 0) {
if (u->datalen > 0) {
lua_pushstring (L, "path");
lua_pushlstring (L, u->data, u->datalen);
lua_settable (L, -3);

Loading…
Cancel
Save