Skip to content

Commit

Permalink
QLformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwstubbs committed Sep 3, 2024
1 parent bd2564e commit 6efb3c6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions python/ql/lib/semmle/python/frameworks/Bottle.qll
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,10 @@ module Bottle {
}
}

module Header {
API::Node instance() { result = bottle().getMember("response").getMember("headers") }
/** Provides models for the `bottle.headers` module */
module Headers {
/** Gets a reference to the `bottle.headers` module. */
API::Node headers() { result = bottle().getMember("response").getMember("headers") }

/** A dict-like write to a response header. */
class HeaderWriteSubscript extends Http::Server::ResponseHeaderWrite::Range, DataFlow::Node {
Expand All @@ -94,7 +96,7 @@ module Bottle {

HeaderWriteSubscript() {
exists(API::Node holder |
holder = instance() and
holder = headers() and
this = holder.asSource() and
value = holder.getSubscriptAt(name)
)
Expand Down

0 comments on commit 6efb3c6

Please sign in to comment.