Changeset 943

Show
Ignore:
Timestamp:
08/27/08 16:01:37 (3 months ago)
Author:
elemoine
Message:

make the http proxy work with multi-host web servers

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/camptocamp/MapFishUnhcr/client/examples/http-proxy.py

    r304 r943  
    104104        # 
    105105        http = httplib2.Http() 
     106        req.headers_in['Host'] = host # or it won't work with multi-host web servers 
    106107        resp, content = http.request(url, method=method, body=body, headers=req.headers_in) 
    107108        if resp.has_key('content-type'):