Commit 7151176d authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

include instance URL in UA

parent b2824fcf
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -105,6 +105,7 @@ sub startup {
				log            => $self->app->log,
				main_cache     => $self->app->cache_iris_main,
				realtime_cache => $self->app->cache_iris_rt,
				root_url       => $self->url_for('/')->to_abs,
				user_agent     => $self->ua,
				version        => $VERSION,
			);
@@ -117,6 +118,7 @@ sub startup {
			state $hafas = DBInfoscreen::Helper::Wagonorder->new(
				log        => $self->app->log,
				cache      => $self->app->cache_iris_main,
				root_url   => $self->url_for('/')->to_abs,
				user_agent => $self->ua,
				version    => $VERSION,
			);
+2 −1
Original line number Diff line number Diff line
@@ -16,7 +16,8 @@ sub new {

	$opt{header}
	  = { 'User-Agent' =>
		  "dbf/${version} +https://finalrewind.org/projects/db-fakedisplay" };
"dbf/${version} on $opt{root_url} +https://finalrewind.org/projects/db-fakedisplay"
	  };

	return bless( \%opt, $class );

+2 −1
Original line number Diff line number Diff line
@@ -16,7 +16,8 @@ sub new {

	$opt{header}
	  = { 'User-Agent' =>
		  "dbf/${version} +https://finalrewind.org/projects/db-fakedisplay" };
"dbf/${version} on $opt{root_url} +https://finalrewind.org/projects/db-fakedisplay"
	  };

	return bless( \%opt, $class );