ok, so basically
Wrong way:
Content-Disposition: attachment, filename=name of the file.example
Right way:
Content-Disposition: attachment; filename="name of the file.example"
web2py uses correct attachment semicolon filename= but not the quotation
(also if it shouldn't be necessary because web2py default storage method
replaces spaces with underscores.)
could you try opening globals and around line 400 replace with this ? (just
the quotation marks added)
headers['Content-Disposition'] = \
'attachment; filename="%s"' % filename
If the error goes away we can patch other few places using just
filename=filename (i.e. without double quotes)
On Tuesday, October 23, 2012 4:28:12 PM UTC+2, Massimo Di Pierro wrote:
>
> Can you tell us which header is duplicated?
>
> On Tuesday, 23 October 2012 08:47:31 UTC-5, Mandar Vaze wrote:
>>
>> I am getting "Duplicate headers received from server" when I try to
>> download an attachment for the "upload" field.
>>
>> This is a problem ONLY for Google Chrome (Version 22.0.1229.94) on Linux
>> Mint 13 64bit (if it matters)
>> works well on Firefox
>> I came across this "fix" :
>> http://blog.haulix.com/post/Google-Chrome-Duplicate-Headers-Fix.aspx
>>
>> This is NOT a problem for "normal" SQLFORM.grid - just for this "new"
>> code where query is built from session variables. (Refer to my query
>> https://groups.google.com/d/msg/web2py/fRLWywNO5kk/xFHcnhJHrXQJ) I'm
>> posting this as separate thread since the problem "may not" be related.
>>
>> Anyone else seen this problem ?
>>
>> -Mandar
>>
>>
--