Permalink
Browse files

quote all vars in About to force stringify

  • Loading branch information...
1 parent 1f8dfd7 commit e2e87eef0277864dd14ca130c8cebbb8fd07d424 @karpet committed Aug 20, 2012
Showing with 12 additions and 12 deletions.
  1. +1 −1 Changes
  2. +11 −11 lib/Dezi/Server/About.pm
View
@@ -28,4 +28,4 @@ Revision history for Dezi
0.001007 xxx
* pod tweeks
-
+ * quote some objects in About to force stringify
@@ -53,41 +53,41 @@ sub new {
my $about = {
name => 'Dezi',
author => 'Peter Karman <karpet@dezi.org>',
- api_base_url => $uri,
+ api_base_url => "$uri",
api_format => [qw( JSON ExtJS XML )],
methods => [
{ method => 'GET',
- path => $search_path,
+ path => "$search_path",
params => [qw( q r c f o s p t u)],
required => [qw( q )],
description => 'return search results',
- base_url => $search_uri,
+ base_url => "$search_uri",
},
{ method => 'POST',
- path => $index_path . '/:doc_uri',
+ path => "$index_path" . '/:doc_uri',
params => [],
required => [],
description => 'update the index with content for doc_uri',
- base_url => $index_uri,
+ base_url => "$index_uri",
},
{ method => 'PUT',
- path => $index_path . '/:doc_uri',
+ path => "$index_path" . '/:doc_uri',
params => [],
required => [],
description => 'update the index with content for doc_uri',
- base_url => $index_uri,
+ base_url => "$index_uri",
},
{ method => 'DELETE',
- path => $index_path . '/:doc_uri',
+ path => "$index_path" . '/:doc_uri',
params => [],
required => [],
description => 'remove doc_uri from the index',
- base_url => $index_uri,
+ base_url => "$index_uri",
},
],
engine => ref( $server->engine ),
- search => $search_uri,
- index => $index_uri,
+ search => "$search_uri",
+ index => "$index_uri",
description =>
'This is a Dezi search server. See http://dezi.org/ for more details.',
version => $version,

0 comments on commit e2e87ee

Please sign in to comment.