Browse Source

dev 2020-11

Max F 5 years ago
parent
commit
7422bffa80
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/Http/Response.php
  2. 1 1
      src/Routing/Router.php

+ 1 - 1
src/Http/Response.php

@@ -183,7 +183,7 @@ class Response
 		if (! is_string($json) || ! in_array(substr($json, 0, 1), ['"', "'", '[', '{'])) {
 			$json = json_encode($json);
 		}
-		return $this->download($body, $download_file_name, $status, $content_type);
+		return $this->download($json, $download_file_name, $status, $content_type);
 	}
 
 	public function csv(array $rows, $download_file_name=null, $status=200, $content_type='text/csv; charset=utf8')

+ 1 - 1
src/Routing/Router.php

@@ -447,7 +447,7 @@ class Router
 		if ($get_prefix) {
 			$link = $get_prefix . $link;
 		}
-		//pre($link, 1, 'link: ');
+		//pre($link, 0, 'link: ');
 
 
 		$link = rtrim($link, '$');