Skip to content

Commit

Permalink
Remove legacy callback path compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
samoli committed Jun 13, 2012
1 parent 3ce45fa commit 3f0a44e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/shared_workforce/end_point.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def initialize(app = nil)
end

def call(env)
if env["PATH_INFO"] =~ %r{^/#{callback_path}} || env["PATH_INFO"] =~ %r{^/hci_task_result} #legacy compatibility, can be removed in next release
if env["PATH_INFO"] =~ %r{^/#{callback_path}}
process_response(Rack::Request.new(env).body.read)
else
@app.call(env) if @app.respond_to? :call
Expand Down

0 comments on commit 3f0a44e

Please sign in to comment.