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.

restfulie client currently assumes that both request and response contains the same mime type

#5

The request method expects that the response is of the same media type as the request, while it could be something different:

def request!(method, path, *args)
  representation = do_conneg_and_choose_representation(method, path, *args)
  return super(method, path, *args) unless representation
  if has_payload?(method, path, *args)
    payload = get_payload(method, path, *args)
    payload = representation.marshal(payload)
    args = set_marshalled_payload(method, path, payload, *args)
  end
  args = add_representation_headers(method, path, representation, *args)
  response = super(method, path, *args)
  if @raw
    response 
  else
    unmarshalled = representation.unmarshal(response.body)
    unmarshalled.extend(ResponseHolder)
    unmarshalled.response = response
    unmarshalled
  end
end

Reported by Guilherme Silveira · April 3rd, 2010 @ 08:22 PM

State: resolved
Milestone: v0.7
Assigned to: Guilherme Silveira Guilherme Silveira

Activity

  1. Guilherme Silveira
    Guilherme Silveira
    • Assigned user set to Guilherme Silveira
    • Milestone set to v0.7

    working on it

    April 6th, 2010 @ 12:51 PM

  2. Guilherme Silveira
    Guilherme Silveira
    • State changed from new to open

    April 6th, 2010 @ 01:20 PM

  3. Guilherme Silveira

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.