]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/http.cpp
a wxCHECK added
[wxWidgets.git] / src / common / http.cpp
index bfcd1ad1567824ab098525ce9a9ee11bb22278d2..a50e3ea140b8877ed69c30ad1ce7d6793d3670a4 100644 (file)
@@ -106,7 +106,7 @@ void wxHTTP::SendHeaders()
     wxString buf;
     buf.Printf(_T("%s: %s\n\r"), head->GetKeyString(), str->GetData());
 
-    wxWX2MBbuf cbuf = buf.mb_str();
+    const wxWX2MBbuf cbuf = buf.mb_str();
     Write(cbuf, strlen(cbuf));
 
     head = head->Next();
@@ -187,7 +187,7 @@ bool wxHTTP::BuildRequest(const wxString& path, wxHTTP_Req req)
 {
   char *tmp_buf;
   char buf[HTTP_BSIZE];
-  wxWX2MBbuf pathbuf = path.mb_str();
+  const wxWX2MBbuf pathbuf = path.mb_str();
 
   switch (req) {
   case wxHTTP_GET: