Helpviewer/HelpUtilities.py

changeset 4332
64034d85c709
parent 4326
e52318f11812
child 4631
5c1a96925da4
equal deleted inserted replaced
4331:711e7c35a49b 4332:64034d85c709
88 """ 88 """
89 Function to parse a content disposition header. 89 Function to parse a content disposition header.
90 90
91 @param reply network reply to be parsed 91 @param reply network reply to be parsed
92 @type QNetworkReply 92 @type QNetworkReply
93 @return file name parsed from a content disposition header
94 @rtype str
93 """ 95 """
94 path = "" 96 path = ""
95 # step 1: check the content disposition header for a file name 97 # step 1: check the content disposition header for a file name
96 if reply.hasRawHeader(b"Content-Disposition"): 98 if reply.hasRawHeader(b"Content-Disposition"):
97 from E5Network.E5RFC6266 import parse_headers 99 from E5Network.E5RFC6266 import parse_headers

eric ide

mercurial