github: shadowy octopus with the head of a robot, emblazoned with the Dreamwidth swirl (Default)
github ([personal profile] github) wrote in [site community profile] changelog2023-06-18 12:15 pm

[dreamwidth/dreamwidth] 052135: fix failing t/media-security.t (#3127)

Branch: refs/heads/main Home: https://github.com/dreamwidth/dreamwidth Commit: 052135fc05efd58f6f5a53cd1cd0edf1f92e0e74 https://github.com/dreamwidth/dreamwidth/commit/052135fc05efd58f6f5a53cd1cd0edf1f92e0e74 Author: Jen kareila@dreamwidth.org Date: 2023-06-18 (Sun, 18 Jun 2023)

Changed paths: M cgi-bin/DW/Media/Base.pm

Log Message:


fix failing t/media-security.t (#3127)

A line I added in #3100 was failing in testing because there was no web request object defined in that context. This was the error:

Can't call method "headers_in" on an undefined value at dw/cgi-bin/DW/Media/Base.pm line 140.

This adds an undefined value check to make sure everything proceeds smoothly.