|
| 1 | + $ source ../../server-test-helpers.sh |
| 2 | + $ run_server ./test.exe |
| 3 | + ocsigen:main: [WARNING] Command pipe created |
| 4 | + ocsigen:access: connection for local-test from (curl/8.12.1): /index.html |
| 5 | + ocsigen:ext: [INFO] host found! local-test:0 matches .* |
| 6 | + ocsigen:ext:staticmod: [INFO] Is it a static file? |
| 7 | + ocsigen:local-file: [INFO] Testing "./index.html". |
| 8 | + ocsigen:local-file: [INFO] checking if file index.html can be sent |
| 9 | + ocsigen:ext: [INFO] Compiling exclusion regexp $^ |
| 10 | + ocsigen:local-file: [INFO] Returning "./index.html". |
| 11 | + ocsigen:access: connection for local-test from (curl/8.12.1): /index.html |
| 12 | + ocsigen:ext: [INFO] host found! local-test:0 matches .* |
| 13 | + ocsigen:ext:staticmod: [INFO] Is it a static file? |
| 14 | + ocsigen:local-file: [INFO] Testing "./index.html". |
| 15 | + ocsigen:local-file: [INFO] checking if file index.html can be sent |
| 16 | + ocsigen:local-file: [INFO] Returning "./index.html". |
| 17 | + ocsigen:ext:deflate: [INFO] Zlib stream initialized |
| 18 | + ocsigen:ext:deflate: [INFO] End of stream: big cleaning for zlib |
| 19 | + ocsigen:ext:deflate: [INFO] Zlib.deflate finished, last flush |
| 20 | + ocsigen:ext:deflate: [INFO] Flushing! |
| 21 | + ocsigen:ext:deflate: [INFO] Zlib stream closed |
| 22 | + application: [WARNING] Command received: shutdown |
| 23 | + |
| 24 | +First response is not compressed: |
| 25 | + |
| 26 | + $ curl_ "index.html" |
| 27 | + HTTP/1.1 200 OK |
| 28 | + content-type: text/html |
| 29 | + server: Ocsigen |
| 30 | + content-length: 12 |
| 31 | + |
| 32 | + Hello world |
| 33 | + |
| 34 | +Second response is compressed: |
| 35 | + |
| 36 | + $ curl_ "index.html" --compressed |
| 37 | + HTTP/1.1 200 OK |
| 38 | + content-type: text/html |
| 39 | + content-encoding: gzip |
| 40 | + server: Ocsigen |
| 41 | + transfer-encoding: chunked |
| 42 | + |
| 43 | + Hello world |
0 commit comments