Changeset 1281 in ntrip for trunk


Ignore:
Timestamp:
Dec 6, 2008, 6:48:11 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncgetthread.cpp

    r1280 r1281  
    261261  hlp.setPath(mountPoint.path());
    262262
    263   QByteArray reqStr;
    264   if ( proxyHost.isEmpty() ) {
    265     if (hlp.path().indexOf("/") != 0) {
    266       hlp.setPath("/");
    267     }
    268     reqStr = "GET " + hlp.path().toAscii() + " HTTP/1.0\r\n";
    269   } else {
    270     reqStr = "GET " + hlp.toEncoded() + " HTTP/1.0\r\n";
    271   }
    272   reqStr += "User-Agent: NTRIP BNC/" AGENTVERSION "\r\n"
    273             "Host: " + hlp.host().toAscii() + "\r\n"
    274             + userAndPwd + "\r\n";
     263  QByteArray reqStr = "GET " + hlp.toEncoded() + " HTTP/1.0\r\n"
     264                    + "User-Agent: NTRIP BNC/" AGENTVERSION "\r\n"
     265                      "Host: " + hlp.host().toAscii() + "\r\n"
     266                    + userAndPwd + "\r\n";
    275267
    276268  // NMEA string to handle VRS stream
Note: See TracChangeset for help on using the changeset viewer.