Skip to content

Commit dc4b819

Browse files
Try to fix tests
License: MIT Signed-off-by: Friedel Ziegelmayer <[email protected]>
1 parent 4f1594f commit dc4b819

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/sharness/t0230-channel-streaming-http-content-type.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ test_ls_cmd() {
2121

2222
test_expect_success "Text encoded channel-streaming command output looks good" '
2323
printf "HTTP/1.1 200 OK\r\n" >expected_output &&
24+
printf "Access-Control-Allow-Headers: X-Stream-Output, X-Chunked-Output\r\n" >>expected_output &&
25+
printf "Access-Control-Expose-Headers: X-Stream-Output, X-Chunked-Output\r\n" >>expected_output &&
2426
printf "Content-Type: text/plain\r\n" >>expected_output &&
2527
printf "Trailer: X-Stream-Error\r\n" >>expected_output &&
2628
printf "Transfer-Encoding: chunked\r\n" >>expected_output &&
@@ -41,6 +43,8 @@ test_ls_cmd() {
4143

4244
test_expect_success "JSON encoded channel-streaming command output looks good" '
4345
printf "HTTP/1.1 200 OK\r\n" >expected_output &&
46+
printf "Access-Control-Allow-Headers: X-Stream-Output, X-Chunked-Output\r\n" >>expected_output &&
47+
printf "Access-Control-Expose-Headers: X-Stream-Output, X-Chunked-Output\r\n" >>expected_output &&
4448
printf "Content-Type: application/json\r\n" >>expected_output &&
4549
printf "Trailer: X-Stream-Error\r\n" >>expected_output &&
4650
printf "Transfer-Encoding: chunked\r\n" >>expected_output &&

0 commit comments

Comments
 (0)