mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +00:00
Always use ODictCaseless for headers.
This commit is contained in:
parent
4c6a445361
commit
5fdf710c81
@ -295,7 +295,7 @@ class FlowView(common.WWrap):
|
|||||||
self.master.refresh_flow(self.flow)
|
self.master.refresh_flow(self.flow)
|
||||||
|
|
||||||
def set_headers(self, lst, conn):
|
def set_headers(self, lst, conn):
|
||||||
conn.headers = flow.ODict(lst)
|
conn.headers = flow.ODictCaseless(lst)
|
||||||
|
|
||||||
def set_query(self, lst, conn):
|
def set_query(self, lst, conn):
|
||||||
conn.set_query(flow.ODict(lst))
|
conn.set_query(flow.ODict(lst))
|
||||||
@ -317,7 +317,7 @@ class FlowView(common.WWrap):
|
|||||||
conn = self.flow.request
|
conn = self.flow.request
|
||||||
else:
|
else:
|
||||||
if not self.flow.response:
|
if not self.flow.response:
|
||||||
self.flow.response = flow.Response(self.flow.request, 200, "OK", flow.ODict(), "")
|
self.flow.response = flow.Response(self.flow.request, 200, "OK", flow.ODictCaseless(), "")
|
||||||
conn = self.flow.response
|
conn = self.flow.response
|
||||||
|
|
||||||
self.flow.backup()
|
self.flow.backup()
|
||||||
|
Loading…
Reference in New Issue
Block a user