Skip to content

Commit

Permalink
Attempt fix
Browse files Browse the repository at this point in the history
  • Loading branch information
federicotdn committed Jan 4, 2025
1 parent e7b6293 commit ba2bc3e
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions test/verb-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -2380,14 +2380,17 @@
(ert-deftest test-default-headers ()
(server-test "sorted-headers"
(let ((headers '("mime-version"
"connection"
"content-length"
"host"
"accept"
"accept-encoding")))
"connection"
"content-length"
"host"
"accept")))
;; Only append this header if we can decode gzip
(when url-mime-encoding-string
(push "accept-encoding" headers))

(dolist (h headers)
(goto-char (point-min))
(should (search-forward (concat h ": "))))
(goto-char (point-min))
(should (search-forward (concat h ": "))))

(goto-char (point-min))
(delete-matching-lines "cookie") ; Ignore cookie header.
Expand All @@ -2396,7 +2399,7 @@
(delete-matching-lines "extension") ; Ignore extension header.

(should (= (count-lines (point-min) (point-max))
(length headers))))))
(length headers))))))

(defconst test-json (join-lines "{"
" \"foo\": {"
Expand Down

0 comments on commit ba2bc3e

Please sign in to comment.