4 ms·
response.content_type = date.today() >Holy hell, my content type is a fucking day and Python happily spits out the resulting gibberish. I think this is one of
by underyx 11y ago
response.content_type = date.today()
>Holy hell, my content type is a fucking day and Python happily spits out the resulting gibberish.
I think this is one of those cases where the 'we are all consenting adults' mantra applies. I have a really hard time imagining a scenario in which anyone I know would write that line of code deliberately, and an even harder time imagining one where a date gets passed as content type accidentally.
- pyre 11y agoI could easily write a similar blog post about C doing gymnastics with malloc that don't make any logical sense.