This commit is contained in:
Sky O 2024-03-29 19:19:24 +00:00
parent 6e97e624d0
commit 98db9d22a6

View File

@ -39,6 +39,7 @@ def get_body_from_form_data(
return
def on_header_begin():
print("YO NEW HEADER")
h = Header()
current_part.headers.append(h)
return
@ -47,10 +48,12 @@ def get_body_from_form_data(
return
def on_header_field(b,s,e):
print("YO HEADER FIELD")
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