Skip to content

Commit 71df200

Browse files
committed
Fix line ending in tests
1 parent 14c5751 commit 71df200

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/test-integration.janet

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,11 @@
22

33
(use judge)
44

5-
(defn line-ending []
6-
(case (os/which)
7-
:windows "\r\n\r\n"
8-
"\n\n"))
5+
(def line-ending "\r\n\r\n")
96

107
(defn write-output [handle response]
118
# Write headers
12-
(:write handle (string "Content-Length: " (length response) (line-ending)))
9+
(:write handle (string "Content-Length: " (length response) line-ending))
1310

1411
# Write response
1512
(:write handle (string response (if (string/has-suffix? "\n" response) "" "\n")))

0 commit comments

Comments
 (0)