Why even bother
This commit is contained in:
parent
98db9d22a6
commit
e6733a3f51
@ -39,21 +39,19 @@ def get_body_from_form_data(
|
||||
return
|
||||
|
||||
def on_header_begin():
|
||||
print("YO NEW HEADER")
|
||||
h = Header()
|
||||
current_part.headers.append(h)
|
||||
|
||||
return
|
||||
|
||||
def on_header_end():
|
||||
return
|
||||
|
||||
def on_header_field(b,s,e):
|
||||
print("YO HEADER FIELD")
|
||||
h = Header()
|
||||
current_part.headers.append(h)
|
||||
current_part.headers[-1].name = b[s:e]
|
||||
return
|
||||
|
||||
def on_header_value(b,s,e):
|
||||
print("YO HEADER VALUE")
|
||||
current_part.headers[-1].value = b[s:e]
|
||||
return
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user