We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23fd4db commit 1308debCopy full SHA for 1308deb
lib/casclient/responses.rb
@@ -191,7 +191,7 @@ def parse_http_response(http_response)
191
@ticket = $~[1]
192
end
193
194
- if not ((http_response.kind_of?(Net::HTTPSuccess) || http_response.kind_of?(Net::HTTPFound)) && @ticket.present?)
+ unless http_response.kind_of?(Net::HTTPSeeOther) && @ticket.present?
195
@failure = true
196
# Try to extract the error message -- this only works with RubyCAS-Server.
197
# For other servers we just return the entire response body (i.e. the whole error page).
0 commit comments