Ignore:
Timestamp:
30/07/08 11:56:24 (13 years ago)
Author:
domlowe
Message:


changing response to return file contents - the global response object behaves differently in this respect

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/controllers/csml_wcs1_0_0.py

    r3971 r4077  
    366366            response.headers['Content-Type']=mType 
    367367            response.headers['Content-Disposition'] = paste.httpheaders.CONTENT_DISPOSITION(attachment=True, filename=f) 
    368             return response.write(fileToReturn) 
     368            return response.write(fileToReturn.read()) 
    369369 
    370370        except Exception, e: 
Note: See TracChangeset for help on using the changeset viewer.