1
0
Fork 0

make the metar command line tool case insensitive

This commit is contained in:
Torsten Dreyer 2013-09-26 16:49:27 +02:00
parent 0206de2d2c
commit 8d415eafa3

View file

@ -28,6 +28,8 @@
#include <cstdlib>
#include <cstdio>
#include <boost/algorithm/string.hpp>
#include <simgear/debug/logstream.hxx>
#include <simgear/environment/metar.hxx>
#include <simgear/structure/exception.hxx>
@ -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)
{