Return-Path: X-Original-To: apmail-deltacloud-dev-archive@www.apache.org Delivered-To: apmail-deltacloud-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 15FA1D3B8 for ; Mon, 28 Jan 2013 23:12:38 +0000 (UTC) Received: (qmail 77984 invoked by uid 500); 28 Jan 2013 23:12:38 -0000 Delivered-To: apmail-deltacloud-dev-archive@deltacloud.apache.org Received: (qmail 77969 invoked by uid 500); 28 Jan 2013 23:12:38 -0000 Mailing-List: contact dev-help@deltacloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@deltacloud.apache.org Delivered-To: mailing list dev@deltacloud.apache.org Received: (qmail 77959 invoked by uid 99); 28 Jan 2013 23:12:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jan 2013 23:12:37 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lutter@redhat.com designates 209.132.183.28 as permitted sender) Received: from [209.132.183.28] (HELO mx1.redhat.com) (209.132.183.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jan 2013 23:12:30 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r0SNC8Hc015692 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 28 Jan 2013 18:12:08 -0500 Received: from [10.3.112.79] (ovpn-112-79.phx2.redhat.com [10.3.112.79]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r0SNC7WQ030343 for ; Mon, 28 Jan 2013 18:12:07 -0500 Message-ID: <1359414726.30762.13.camel@avon.watzmann.net> Subject: Re: [PATCH] Activate robots.txt for Deltacloud servers - DTACLOUD-440 From: David Lutterkort To: dev@deltacloud.apache.org Date: Mon, 28 Jan 2013 15:12:06 -0800 In-Reply-To: <1359389883-16159-1-git-send-email-marios@redhat.com> References: <1359389883-16159-1-git-send-email-marios@redhat.com> Organization: Red Hat Inc Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-Virus-Checked: Checked by ClamAV on apache.org On Mon, 2013-01-28 at 18:18 +0200, marios@redhat.com wrote: > From: marios > > https://issues.apache.org/jira/browse/DTACLOUD-440 > > Signed-off-by: marios 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