]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/relation_controller.rb
change 'no nodes' response to use API_VERSION in output
[rails.git] / app / controllers / relation_controller.rb
index caacd4fb9960358ef1720000b3342b3285ac5265..20f5372a6cc1ed0e40d64c37ece71f6a1b7bc738 100644 (file)
@@ -52,6 +52,7 @@ class RelationController < ApplicationController
 
       if new_relation and new_relation.id == relation.id
        relation.update_from new_relation, user
+        render :text => relation.version.to_s, :content_type => "text/plain"
       else
         render :nothing => true, :status => :bad_request
       end