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.

There was a problem

You must be a member of this account.

Don't append query string if it's nil

#42

Not a big deal, but we end up sending requests that look like

http://localhost:3000/dogs.json?(null)

Rails handles it fine, it adds an extra param (null=nil), but there is no reason to have it there.

Problem is in Connection.m:59

Reported by Joshua Vickery · February 10th, 2009 @ 07:06 PM

State: resolved
Assigned to: Joshua Vickery Joshua Vickery

Activity

  1. jjburka
    jjburka
    • Assigned user set to jjburka

    February 18th, 2009 @ 12:45 PM

  2. Ryan Daigle
  3. jjburka
    jjburka
    • Assigned user changed from jjburka to Joshua Vickery

    February 18th, 2009 @ 02:55 PM

  4. Joshua Vickery
    Joshua Vickery
    • Assigned user changed from Joshua Vickery to jjburka

    I'm a little nervous about that big block of code that only gets executed if there is a username and password. It looks OK to me, but I would feel better if we had a test that ran without a username and password. Or do we have that and I'm missing it?

    February 18th, 2009 @ 06:35 PM

  5. Ryan Daigle
    Ryan Daigle

    (from [7aa4e07c66ad644484e28f5af6d1016a6c8df095]) [#42 Don't append query string if it's nil] cleaned up url , changed Dog tests to use no user http://github.com/yfactorial/obj...

    February 18th, 2009 @ 07:17 PM

  6. jjburka
    jjburka
    • Assigned user changed from jjburka to Joshua Vickery

    maybe this will ease your nerves , a bigger block of code that only gets executed when there is a user and password. Setting the auth header isn't needed if their is no user/password. I set the Dog Test to not use a user and password. In connection.m #107 Do you want to know the secret of success and wealth? and #125 is that code dead? It doesn't seem to be called in our tests.

    February 18th, 2009 @ 07:25 PM

  7. Joshua Vickery
  8. Joshua Vickery
    Joshua Vickery
    • State changed from new to resolved

    looks good

    February 19th, 2009 @ 07:32 AM

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.