Helpviewer/Network/NetworkAccessManager.py

changeset 629
c88489b378fb
parent 553
5af61623ae3c
child 664
3061f8bd826e
equal deleted inserted replaced
628:94f012a1261f 629:c88489b378fb
130 req = QNetworkRequest(request) 130 req = QNetworkRequest(request)
131 if hasattr(QNetworkRequest, 'HttpPipeliningAllowedAttribute'): 131 if hasattr(QNetworkRequest, 'HttpPipeliningAllowedAttribute'):
132 req.setAttribute(QNetworkRequest.HttpPipeliningAllowedAttribute, True); 132 req.setAttribute(QNetworkRequest.HttpPipeliningAllowedAttribute, True);
133 if not self.__acceptLanguage.isEmpty(): 133 if not self.__acceptLanguage.isEmpty():
134 req.setRawHeader("Accept-Language", self.__acceptLanguage) 134 req.setRawHeader("Accept-Language", self.__acceptLanguage)
135
136 # set cache policy
137 req.setAttribute(QNetworkRequest.CacheLoadControlAttribute,
138 Preferences.getHelp("CachePolicy"))
135 139
136 # AdBlock code 140 # AdBlock code
137 if op == QNetworkAccessManager.GetOperation: 141 if op == QNetworkAccessManager.GetOperation:
138 if self.__adblockNetwork is None: 142 if self.__adblockNetwork is None:
139 self.__adblockNetwork = \ 143 self.__adblockNetwork = \

eric ide

mercurial