make the metar command line tool case insensitive
This commit is contained in:
parent
0206de2d2c
commit
8d415eafa3
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue