tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

request-headers-case.any.js (650B)


      1 // META: global=window,worker
      2 
      3 promise_test(() => {
      4  return fetch("/xhr/resources/echo-headers.py", {headers: [["THIS-is-A-test", 1], ["THIS-IS-A-TEST", 2]] }).then(res => res.text()).then(body => {
      5    assert_regexp_match(body, /THIS-is-A-test: 1, 2/)
      6  })
      7 }, "Multiple headers with the same name, different case (THIS-is-A-test first)")
      8 
      9 promise_test(() => {
     10  return fetch("/xhr/resources/echo-headers.py", {headers: [["THIS-IS-A-TEST", 1], ["THIS-is-A-test", 2]] }).then(res => res.text()).then(body => {
     11    assert_regexp_match(body, /THIS-IS-A-TEST: 1, 2/)
     12  })
     13 }, "Multiple headers with the same name, different case (THIS-IS-A-TEST first)")