From 8d415eafa398ce482a747eb07a01cbd6e4d6e87f Mon Sep 17 00:00:00 2001 From: Torsten Dreyer Date: Thu, 26 Sep 2013 16:49:27 +0200 Subject: [PATCH] make the metar command line tool case insensitive --- src/Main/metar_main.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) { -- 2.39.5