Skip to content

Commit fcc7696

Browse files
committed
test script: do not use multi char
1 parent fed0a81 commit fcc7696

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/verify/sources/TestTools/http_server.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ Add-Type -AssemblyName System.Net
33
$listener = New-Object System.Net.HttpListener
44
$listener.Prefixes.Add("http://localhost:8080/")
55
$listener.Start()
6-
Write-Host "HTTP サーバー起動中: http://localhost:8080/"
6+
Write-Host "HTTP server running: http://localhost:8080/"
77

88
while ($listener.IsListening) {
99
try {
1010
$context = $listener.GetContext()
1111
$response = $context.Response
1212
$request = $context.Request
1313

14-
# キャッシュ無効化ヘッダー
14+
# Disable cache in order to cause ERR_CACHE_MISS
1515
$response.Headers.Add("Cache-Control", "no-store, no-cache, must-revalidate")
1616
$response.Headers.Add("Pragma", "no-cache")
1717
$response.ContentType = "text/html"
@@ -32,6 +32,6 @@ while ($listener.IsListening) {
3232
$response.OutputStream.Write($buffer, 0, $buffer.Length)
3333
$response.OutputStream.Close()
3434
} catch {
35-
Write-Warning "エラー: $_"
35+
Write-Warning "Error: $_"
3636
}
3737
}

0 commit comments

Comments
 (0)