tangled
alpha
login
or
join now
stau.space
/
aecc-db
0
fork
atom
AECC database project.
0
fork
atom
overview
issues
pulls
pipelines
fix(read): Make headers print before body.
Diego A. Estrada Rivera
9 months ago
82dbb6ee
5a4c038f
+6
-6
1 changed file
expand all
collapse all
unified
split
api
v1
read
index.php
+6
-6
api/v1/read/index.php
···
52
52
$stmt->execute();
53
53
}
54
54
55
55
-
$out .= header("HTTP/1.1 200 Succesfully got activities");
55
55
+
print header("HTTP/1.1 200 Succesfully got activities");
56
56
$out .= json_encode($stmt -> get_result() -> fetch_all());
57
57
58
58
$db->close();
···
81
81
$stmt -> bind_param($param_str, ...$params);
82
82
$stmt -> execute();
83
83
84
84
-
$out .= header("HTTP/1.1 200 Succesfully got activity transactions");
84
84
+
print header("HTTP/1.1 200 Succesfully got activity transactions");
85
85
$out .= json_encode($stmt -> get_result() -> fetch_all());
86
86
87
87
$db->close();
···
126
126
$stmt -> bind_param($param_str, ...$params);
127
127
}
128
128
129
129
-
$out .= header("HTTP/1.1 200 Succesfully got board member");
129
129
+
print header("HTTP/1.1 200 Succesfully got board member");
130
130
$out .= json_encode($stmt -> get_result() -> fetch_all());
131
131
132
132
$db->close();
···
188
188
$stmt -> execute();
189
189
}
190
190
191
191
-
$out .= header("HTTP/1.1 201 Succesfully got transactions.");
191
191
+
print header("HTTP/1.1 201 Succesfully got transactions.");
192
192
$out .= json_encode($stmt -> get_result() -> fetch_all());
193
193
194
194
$db->close();
···
226
226
$stmt -> execute();
227
227
}
228
228
229
229
-
$out .= header("HTTP/1.1 201 Successfully got products.");
229
229
+
print header("HTTP/1.1 201 Successfully got products.");
230
230
$out .= json_encode($stmt -> get_result() -> fetch_all());
231
231
232
232
$db->close();
···
273
273
$stmt -> execute();
274
274
}
275
275
276
276
-
$out .= header("HTTP/1.1 201 Succesfully got transactions.");
276
276
+
print header("HTTP/1.1 201 Succesfully got transactions.");
277
277
$out .= json_encode($stmt -> get_result() -> fetch_all());
278
278
279
279
$db->close();