Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

support link header on the server side

#164

Tokamak is not generating link headers

Reported by Guilherme Silveira · January 5th, 2011 @ 08:21 PM

State: new
Milestone: none
Assigned to: nobody

Activity

  1. Guilherme Silveira
    Guilherme Silveira

    def self.extract_link_header(links)
    links.collect {|link| "<#{link['href']}>; rel=#{link['rel']}"}.join(', ') end

    def test_extract_link_header_from_links
    link1 = {"rel" => "home", "href" => "http://google.com"} link2 = {"rel" => "next", "href" => "http://google.com?q=ruby"} links = [link1, link2]

    expected_header = "http://google.com; rel=home, http://google.com?q=ruby; rel=next" assert_equal expected_header, Tokamak.extract_link_header(links) end

    January 5th, 2011 @ 08:22 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.