/////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__
-#pragma implementation "http.h"
+ #pragma implementation "http.h"
#endif
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#ifdef __BORLANDC__
-#pragma hdrstop
+ #pragma hdrstop
#endif
#if wxUSE_SOCKETS
-#ifndef WX_PRECOMP
-#endif
-
#include <stdio.h>
#include <stdlib.h>
#include "wx/string.h"
if (line.Length() == 0)
break;
- printf("Header: %s\n", WXSTRINGCAST line);
tokenzr.SetString(line, " :\t\n\r");
- if (!tokenzr.HasMoreToken())
+ if (!tokenzr.HasMoreTokens())
return FALSE;
wxString left_str = tokenzr.GetNextToken();
SetFlags(NONE);
Notify(FALSE);
- sprintf(buf, "%s %s HTTP/1.0\n\r", tmp_buf, (const char*)pathbuf);
+ sprintf(buf, "%s %s\n\r", tmp_buf, (const char*) pathbuf);
Write(buf, strlen(buf));
SendHeaders();
sprintf(buf, "\n\r");