Changes between Initial Version and Version 1 of Ticket #4916, comment 1


Ignore:
Timestamp:
03/01/2017 09:53:06 AM (3 years ago)
Author:
fhd
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4916, comment 1

    initial v1  
    11How I see it, this boils down to setting the `Accept-Encoding` header. What encoding we can accept depends on the specific `WebRequest` implementation, however... So it seems the right way to solve this is to set the header in all the implementations. We have `DefaultWebRequestCurl` and `DefaultWebRequestWinInet` in Libadblockplus, and `AndroidWebRequest` in Libadblockplus-Android. Since the last one is in another module, we'll need a separate issue for that. 
     2 
     3While at it, we might want to reject `Accept-Encoding` and the other headers that cannot be set in `XMLHttpRequest` according to the spec: https://www.w3.org/TR/2009/WD-XMLHttpRequest-20091119/#the-setrequestheader-method