cvs commit: patches/OpenSP OpenSP-1.5-httphost-1.patch

jim at linuxfromscratch.org jim at linuxfromscratch.org
Sun Oct 5 15:09:53 PDT 2003


jim         03/10/05 16:09:53

  Added:       OpenSP   OpenSP-1.5-httphost-1.patch
  Log:
  Added: OpenSP-1.5-httphost-1.patch
  
  Revision  Changes    Path
  1.1                  patches/OpenSP/OpenSP-1.5-httphost-1.patch
  
  Index: OpenSP-1.5-httphost-1.patch
  ===================================================================
  Submitted By: Jim Gifford (jim at linuxfromscratch dot org)
  Date: 2003-09-19
  Initial Package Version: 1.5
  Origin: Mandrake CVS
  Description: Adds support for Virtual Domains
   
  diff -Naur OpenSP-1.5.orig/lib/URLStorage.cxx OpenSP-1.5/lib/URLStorage.cxx
  --- OpenSP-1.5.orig/lib/URLStorage.cxx	2001-02-22 21:42:26.000000000 +0000
  +++ OpenSP-1.5/lib/URLStorage.cxx	2003-09-20 06:43:46.000000000 +0000
  @@ -479,6 +479,12 @@
     }
     request.append("\r\n", 2);
     request.append("Accept: */*\r\n", 13);
  +
  +  // Host header as required by virtual domains.
  +  request.append("Host: ", 6);
  +  request.append((const char *)hostStr_.data(), hostStr_.size());
  +  request.append("\r\n", 2);
  +
     request.append("\r\n", 2);
   
     // FIXME check length of write
  
  
  



More information about the patches mailing list