Skip to content

Commit c26c52f

Browse files
committed
Fix gzip and brotli tests
1 parent 98325ab commit c26c52f

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

fsharp-backend/tests/httptestfiles/request-header-content-encoding-brotli.test

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,22 +268,25 @@ GET / HTTP/1.1
268268
Host: HOST
269269
Date: Sun, 08 Nov 2020 15:38:01 GMT
270270
Content-Length: 0
271-
Accept-encoding: gzip
271+
Accept-encoding: br
272272

273273

274274

275275
[response]
276276
HTTP/1.1 200 OK
277277
Date: xxx, xx xxx xxxx xx:xx:xx xxx
278278
Content-Type: text/plain
279-
Content-encoding: gzip
279+
Content-Encoding: br // FSHARPONLY
280+
Content-Length: LENGTH // OCAMLONLY
280281
Access-Control-Allow-Origin: * // FSHARPONLY
281282
access-control-allow-origin: * // OCAMLONLY
282283
x-darklang-execution-id: 0123456789
283284
Server: nginx/1.16.1 // OCAMLONLY
284285
Server: darklang // FSHARPONLY
285286
Connection: keep-alive // OCAMLONLY
286-
Content-Length: LENGTH
287+
Vary: Accept-Encoding // FSHARPONLY
288+
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload // FSHARPONLY
289+
Transfer-Encoding: chunked // FSHARPONLY
287290

288291
/*! * * * * * * * * * * * * * * * * * * * *
289292
CSShake :: shake

fsharp-backend/tests/httptestfiles/request-header-content-encoding-gzip.test

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,10 @@ access-control-allow-origin: * // OCAMLONLY
282282
x-darklang-execution-id: 0123456789
283283
Server: nginx/1.16.1 // OCAMLONLY
284284
Server: darklang // FSHARPONLY
285-
Transfer-Encoding: chunked
286-
Vary: Accept-Encoding // FSHARPONLY
287285
Connection: keep-alive // OCAMLONLY
286+
Vary: Accept-Encoding // FSHARPONLY
287+
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload // FSHARPONLY
288+
Transfer-Encoding: chunked
288289

289290
/*! * * * * * * * * * * * * * * * * * * * *
290291
CSShake :: shake

0 commit comments

Comments
 (0)