ACK

On 12/11/12 13:34, [email protected] wrote:
> From: Michal Fojtik <[email protected]>
> 
> 
> Signed-off-by: Michal fojtik <[email protected]>
> ---
>  server/lib/cimi/collections/machines.rb | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/server/lib/cimi/collections/machines.rb 
> b/server/lib/cimi/collections/machines.rb
> index 9f904c1..6fdfbc2 100644
> --- a/server/lib/cimi/collections/machines.rb
> +++ b/server/lib/cimi/collections/machines.rb
> @@ -52,6 +52,7 @@ module CIMI::Collections
>              new_machine = Machine.create_from_xml(request.body.read, self)
>            end
>            status 201 # Created
> +          headers 'Location' => new_machine.id
>            respond_to do |format|
>              format.json { new_machine.to_json }
>              format.xml { new_machine.to_xml }
> 

Reply via email to