#33697: Cleanup duplication of HTTP header parsing in utils.http and multipart
parser.
------------------------------------------------+------------------------
               Reporter:  Carlton Gibson        |          Owner:  nobody
                   Type:  Cleanup/optimization  |         Status:  new
              Component:  Utilities             |        Version:  4.0
               Severity:  Normal                |       Keywords:
           Triage Stage:  Unreviewed            |      Has patch:  0
    Needs documentation:  0                     |    Needs tests:  0
Patch needs improvement:  0                     |  Easy pickings:  1
                  UI/UX:  0                     |
------------------------------------------------+------------------------
 PY311 deprecated the `cgi` module.

 We removed usage of that in [https://github.com/django/django/pull/15679
 PR 15679].

 There's similar logic already in place in `multipartparser.py`, but header
 parameters are parsed slightly differently, and the return types of the
 helper functions used don't match exactly.
 ([https://github.com/django/django/pull/15679#issuecomment-1123455222
 Comment on the PR linking to the code locations].)

 Nonetheless it looks like we should be able to combine the two functions
 to have a single parsing routine.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33697>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070180b29fd1a8-b845f943-11a6-43b3-ab6f-cb34c2b00108-000000%40eu-central-1.amazonses.com.

Reply via email to