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 |