Changeset 17 in bookmarks for trunk/BookmarkApp.pm
- Timestamp:
- 03/28/13 17:17:24 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BookmarkApp.pm
r16 r17 13 13 my $base_uri = URI->new; 14 14 $base_uri->scheme('http'); 15 $base_uri->host($ENV{ SERVER_NAME});15 $base_uri->host($ENV{HTTP_X_FORWARDED_HOST} || $ENV{SERVER_NAME}); 16 16 $base_uri->port($ENV{SERVER_PORT}); 17 17 $base_uri->path($ENV{SCRIPT_NAME} . '/'); … … 123 123 my $feed = XML::Atom::Feed->new; 124 124 $feed->title('Bookmarks' . ($tag ? " tagged as $tag" : '')); 125 $feed->id($base_uri . 'feed');125 $feed->id($base_uri->canonical . 'feed'); 126 126 127 127 # construct a feed from the most recent 12 bookmarks
Note: See TracChangeset
for help on using the changeset viewer.