summaryrefslogtreecommitdiff
path: root/src/mod_magnet.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mod_magnet.c')
-rw-r--r--src/mod_magnet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_magnet.c b/src/mod_magnet.c
index 2d16d611..53d32f56 100644
--- a/src/mod_magnet.c
+++ b/src/mod_magnet.c
@@ -437,7 +437,7 @@ static int magnet_reqhdr_get(lua_State *L) {
static int magnet_reqhdr_pairs(lua_State *L) {
connection *con = magnet_get_connection(L);
- return magnet_array_pairs(L, con->request.headers);
+ return magnet_array_pairs(L, &con->request.headers);
}
static int magnet_status_get(lua_State *L) {
@@ -688,7 +688,7 @@ static int magnet_cgi_set(lua_State *L) {
static int magnet_cgi_pairs(lua_State *L) {
connection *con = magnet_get_connection(L);
- return magnet_array_pairs(L, con->environment);
+ return magnet_array_pairs(L, &con->environment);
}