From: Torsten Dreyer Date: Thu, 26 Sep 2013 14:49:27 +0000 (+0200) Subject: make the metar command line tool case insensitive X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8d415eafa398ce482a747eb07a01cbd6e4d6e87f;p=flightgear.git make the metar command line tool case insensitive --- diff --git a/src/Main/metar_main.cxx b/src/Main/metar_main.cxx index 9158dc89a..40883409e 100644 --- a/src/Main/metar_main.cxx +++ b/src/Main/metar_main.cxx @@ -28,6 +28,8 @@ #include #include +#include + #include #include #include @@ -49,7 +51,7 @@ public: bool fromProxy; MetarRequest(const std::string& stationId) : - HTTP::Request("http://weather.noaa.gov/pub/data/observations/metar/stations/" + stationId + ".TXT"), + HTTP::Request("http://weather.noaa.gov/pub/data/observations/metar/stations/" + boost::to_upper_copy(stationId) + ".TXT"), complete(false), failed(false) {