www/includes/db_product.php

changeset 296
69fadd1aded2
parent 292
90cd3798edc2
child 299
047ead629d4a
--- a/www/includes/db_product.php	Mon Feb 25 22:53:41 2019 +0100
+++ b/www/includes/db_product.php	Tue Feb 26 16:18:16 2019 +0100
@@ -432,6 +432,7 @@
 				'stage' => $row['stage']
 			);
 		}
+		header("Content-type: application/json");
 		echo json_encode($brews, JSON_UNESCAPED_UNICODE);
 		return;
 	}
@@ -451,7 +452,7 @@
 				'batch_size' => $row['batch_size']
 			);
 		}
-		syslog(LOG_NOTICE, json_encode($brews, JSON_UNESCAPED_UNICODE));
+		header("Content-type: application/json");
 	        echo json_encode($brews, JSON_UNESCAPED_UNICODE);
 	        return;
 	}
@@ -471,6 +472,7 @@
 				'batch_size' => $row['batch_size']
 			);
 		}
+		header("Content-type: application/json");
 		echo json_encode($brews, JSON_UNESCAPED_UNICODE);
 		return;
 	}
@@ -491,6 +493,7 @@
 				'batch_size' => $row['batch_size']
 			);
 		}
+		header("Content-type: application/json");
 		echo json_encode($brews, JSON_UNESCAPED_UNICODE);
 		return;
 	}
@@ -510,6 +513,7 @@
 				'stage' => $row['stage']
 			);
 		}
+		header("Content-type: application/json");
 		echo json_encode($brews, JSON_UNESCAPED_UNICODE);
 		return;
 	}

mercurial