#830 ✓resolved
Betelgeuse

AuthenticationSupport access_denied for xml returns wrong status code

Reported by Betelgeuse | October 11th, 2010 @ 08:08 AM | in Hobo 1.1

While browsing hobo code noticed this bug:

betelgeuse@mac ~/checkouts/hobo $ grep render hobo/lib/hobo/authentication_support.rb 
          render :text => ht("hobo.messages.unauthenticated", :default=>["Couldn't authenticate you"], :status => '401 Unauthorized')

Here status is passed to ht instead of render so the returned status code is 200 Ok.

Comments and changes to this ticket

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Referenced by

Pages