Fb2RSS

A Facebook to RSS conversion tool
git clone git://xatko.vsos.ethz.ch/Fb2RSS.git
Log | Files | Refs | Submodules

commit 03f9bf88d25ca86215fa40ec222d76b76f11c3ca
parent 257d27ee85a472f45d9d84a158cb890aaf02a109
Author: Dominik Schmidt <das1993@hotmail.com>
Date:   Fri, 22 Jan 2016 23:51:22 +0100

Make some global strings static.

RSS-Header and Useragent. They usually do not change and are the same for every class,
so there is no reason to include them in the data.

Diffstat:
fbstream.d | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fbstream.d b/fbstream.d @@ -65,10 +65,10 @@ class FBStream : DRSS!(Post){ * Facebook does check this, and if it doesn't know it, it displays an * "Update your Browser"-Message */ - string userAgent="Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.04"; + static string userAgent="Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.04"; ///The RSS-Header to append. - string rss_header=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>`; + static string rss_header=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>`; immutable string url;