Changeset 1020 in ntrip for trunk/BNC/bncgetthread.cpp


Ignore:
Timestamp:
Aug 6, 2008, 11:28:38 AM (16 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncgetthread.cpp

    r940 r1020  
    206206  QByteArray reqStr;
    207207  if ( proxyHost.isEmpty() ) {
    208    if (hlp.path().indexOf("/") != 0) hlp.setPath("/");
    209      reqStr = "GET " + hlp.path().toAscii() + " HTTP/1.0\r\n";
    210    } else {
    211      reqStr = "GET " + hlp.toEncoded() + " HTTP/1.0\r\n";
     208    if (hlp.path().indexOf("/") != 0) {
     209      hlp.setPath("/");
     210    }
     211    reqStr = "GET " + hlp.path().toAscii() + " HTTP/1.0\r\n";
     212  } else {
     213    reqStr = "GET " + hlp.toEncoded() + " HTTP/1.0\r\n";
    212214  }
    213215  reqStr += "User-Agent: NTRIP BNC/" AGENTVERSION "\r\n"
    214   "Host: " + hlp.host().toAscii() + "\r\n"
    215   + userAndPwd + "\r\n";
    216 
    217 // NMEA string to handle VRS stream
    218 // --------------------------------
    219 
     216            "Host: " + hlp.host().toAscii() + "\r\n"
     217            + userAndPwd + "\r\n";
     218
     219  // NMEA string to handle VRS stream
     220  // --------------------------------
    220221  double lat, lon;
    221222
Note: See TracChangeset for help on using the changeset viewer.