deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Lutterkort <lut...@redhat.com>
Subject Re: [PATCH] Activate robots.txt for Deltacloud servers - DTACLOUD-440
Date Mon, 28 Jan 2013 23:12:06 GMT
On Mon, 2013-01-28 at 18:18 +0200, marios@redhat.com wrote:
> From: marios <marios@redhat.com>
> 
> https://issues.apache.org/jira/browse/DTACLOUD-440
> 
> Signed-off-by: marios <marios@redhat.com>

ACK, with one nit:

> diff --git a/server/lib/deltacloud_rack.rb b/server/lib/deltacloud_rack.rb
> index 8ddcb41..1a1d5b3 100644
> --- a/server/lib/deltacloud_rack.rb
> +++ b/server/lib/deltacloud_rack.rb
> @@ -68,6 +68,10 @@ module Deltacloud
>  
>      set :views, File.join(File.dirname(__FILE__), '..', 'views')
>  
> +    get '/robots.txt' do
> +      File.read(File.join('public', 'robots.txt'))
> +    end

This should be

        get '/robots.txt' do
        	send_file File.join('public', 'robots.txt')
        end

so that we get the right content-type in the response.

David



Mime
View raw message