Skip to content

Commit 4530da5

Browse files
committed
Merge branch 'test-stable-user-agent' into to-eio
2 parents 49c3ae0 + 56957d7 commit 4530da5

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

test/extensions/deflatemod.t/run.t

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
$ run_server ./test.exe
33
ocsigen:main: [WARNING] Command pipe created
44
cohttp.eio: [INFO] unix:: accept connection
5-
ocsigen:access: connection for local-test from (curl/8.13.0): /index.html
5+
ocsigen:access: connection for local-test from unix:// (): /index.html
66
ocsigen:ext: [INFO] host found! local-test:0 matches .*
77
ocsigen:ext:staticmod: [INFO] Is it a static file?
88
ocsigen:local-file: [INFO] Testing "./index.html".
@@ -11,23 +11,23 @@
1111
ocsigen:local-file: [INFO] Returning "./index.html".
1212
cohttp.eio: [INFO] unix:: disconnected
1313
cohttp.eio: [INFO] unix:: accept connection
14-
ocsigen:access: connection for local-test from (curl/8.13.0): /index.html
14+
ocsigen:access: connection for local-test from unix:// (): /index.html
1515
ocsigen:ext: [INFO] host found! local-test:0 matches .*
1616
ocsigen:ext:staticmod: [INFO] Is it a static file?
1717
ocsigen:local-file: [INFO] Testing "./index.html".
1818
ocsigen:local-file: [INFO] checking if file index.html can be sent
1919
ocsigen:local-file: [INFO] Returning "./index.html".
2020
cohttp.eio: [INFO] unix:: disconnected
2121
cohttp.eio: [INFO] unix:: accept connection
22-
ocsigen:access: connection for local-test from (curl/8.13.0): /empty_dir/
22+
ocsigen:access: connection for local-test from unix:// (): /empty_dir/
2323
ocsigen:ext: [INFO] host found! local-test:0 matches .*
2424
ocsigen:ext:staticmod: [INFO] Is it a static file?
2525
ocsigen:local-file: [INFO] Testing "./empty_dir/".
2626
ocsigen:local-file: [INFO] Testing "./empty_dir/index.html" as possible index.
2727
ocsigen:local-file: [INFO] No index and no listing
2828
cohttp.eio: [INFO] unix:: disconnected
2929
cohttp.eio: [INFO] unix:: accept connection
30-
ocsigen:access: connection for local-test from (curl/8.13.0): /doesnt_exists.html
30+
ocsigen:access: connection for local-test from unix:// (): /doesnt_exists.html
3131
ocsigen:ext: [INFO] host found! local-test:0 matches .*
3232
ocsigen:ext:staticmod: [INFO] Is it a static file?
3333
ocsigen:local-file: [INFO] Testing "./doesnt_exists.html".

test/server-test-helpers.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ curl_ ()
3737
{
3838
local path=$1; shift
3939
# Remove the 'date' header, which is unreproducible
40-
curl --unix-socket ./local.sock -s -i "$@" "http://local-test/$path" | \
40+
curl --unix-socket ./local.sock --user-agent "" -s -i \
41+
"$@" "http://local-test/$path" | \
4142
grep -v "^date: "
4243
}

0 commit comments

Comments
 (0)