Skip to content

Commit 2aad636

Browse files
authored
Merge pull request #746 from testsmith-io/fix-headers
fix headers
2 parents 5b1c282 + 0dbfb76 commit 2aad636

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

sprint1/API/app/Http/Controllers/Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ protected function preferredFormat($data, $status = 200, array $headers = [], $x
108108
return $this->makeXML($data, $status, array_merge($headers, ['Content-Type' => app('request')->headers->get('Accept')]), $xmlRoot);
109109
} else {
110110
return response()->json($data, $status,
111-
['Content-Type' => 'application/json;charset=UTF-8', 'Charset' => 'utf-8'], JSON_UNESCAPED_UNICODE | JSON_NUMERIC_CHECK);
111+
['Content-Type' => 'application/json'], JSON_UNESCAPED_UNICODE | JSON_NUMERIC_CHECK);
112112
}
113113
}
114114

sprint2/API/app/Http/Controllers/Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ protected function preferredFormat($data, $status = 200, array $headers = [], $x
108108
return $this->makeXML($data, $status, array_merge($headers, ['Content-Type' => app('request')->headers->get('Accept')]), $xmlRoot);
109109
} else {
110110
return response()->json($data, $status,
111-
['Content-Type' => 'application/json;charset=UTF-8', 'Charset' => 'utf-8'], JSON_UNESCAPED_UNICODE | JSON_NUMERIC_CHECK);
111+
['Content-Type' => 'application/json'], JSON_UNESCAPED_UNICODE | JSON_NUMERIC_CHECK);
112112
}
113113
}
114114

sprint3/API/app/Http/Controllers/Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ protected function preferredFormat($data, $status = 200, array $headers = [], $x
115115
return $this->makeXML($data, $status, array_merge($headers, ['Content-Type' => app('request')->headers->get('Accept')]), $xmlRoot);
116116
} else {
117117
return response()->json($data, $status,
118-
['Content-Type' => 'application/json;charset=UTF-8', 'Charset' => 'utf-8'], JSON_UNESCAPED_UNICODE | JSON_NUMERIC_CHECK);
118+
['Content-Type' => 'application/json'], JSON_UNESCAPED_UNICODE | JSON_NUMERIC_CHECK);
119119
}
120120
}
121121

sprint4/API/app/Http/Controllers/Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ protected function preferredFormat($data, $status = 200, array $headers = [], $x
108108
return $this->makeXML($data, $status, array_merge($headers, ['Content-Type' => app('request')->headers->get('Accept')]), $xmlRoot);
109109
} else {
110110
return response()->json($data, $status,
111-
['Content-Type' => 'application/json;charset=UTF-8', 'Charset' => 'utf-8'], JSON_UNESCAPED_UNICODE | JSON_NUMERIC_CHECK);
111+
['Content-Type' => 'application/json'], JSON_UNESCAPED_UNICODE | JSON_NUMERIC_CHECK);
112112
}
113113
}
114114

sprint5-performance/API/app/Http/Controllers/Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ protected function preferredFormat($data, $status = 200, array $headers = [], $x
121121
return $this->makeXML($data, $status, array_merge($headers, ['Content-Type' => app('request')->headers->get('Accept')]), $xmlRoot);
122122
} else {
123123
return response()->json($data, $status,
124-
['Content-Type' => 'application/json;charset=UTF-8', 'Charset' => 'utf-8'], JSON_UNESCAPED_UNICODE
124+
['Content-Type' => 'application/json'], JSON_UNESCAPED_UNICODE
125125
);
126126
}
127127
}

sprint5-with-bugs/API/app/Http/Controllers/Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ protected function preferredFormat($data, $status = 200, array $headers = [], $x
109109
return $this->makeXML($data, $status, array_merge($headers, ['Content-Type' => app('request')->headers->get('Accept')]), $xmlRoot);
110110
} else {
111111
return response()->json($data, $status,
112-
['Content-Type' => 'application/json;charset=UTF-8', 'Charset' => 'utf-8'], JSON_UNESCAPED_UNICODE | JSON_NUMERIC_CHECK);
112+
['Content-Type' => 'application/json'], JSON_UNESCAPED_UNICODE | JSON_NUMERIC_CHECK);
113113
}
114114
}
115115

0 commit comments

Comments
 (0)