Skip to content

Commit d279845

Browse files
committed
JS: Minor fixes
1 parent e311cc7 commit d279845

File tree

1 file changed

+3
-2
lines changed
  • javascript/ql/src/semmle/javascript/frameworks

1 file changed

+3
-2
lines changed

javascript/ql/src/semmle/javascript/frameworks/HTTP.qll

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,9 @@ module HTTP {
214214
}
215215

216216
/**
217-
* Gets a request object originating from this route handler.
217+
* Gets a response object originating from this route handler.
218218
*
219-
* Use `RequestSource.ref()` to get reference to this request object.
219+
* Use `ResponseSource.ref()` to get reference to this response object.
220220
*/
221221
final Servers::ResponseSource getAResponseSource() {
222222
result.getRouteHandler() = this
@@ -343,6 +343,7 @@ module HTTP {
343343
abstract RouteHandler getRouteHandler();
344344

345345
/** DEPRECATED. Use `ref().flowsTo()` instead. */
346+
deprecated
346347
predicate flowsTo(DataFlow::Node nd) { ref().flowsTo(nd) }
347348

348349
private DataFlow::SourceNode ref(DataFlow::TypeTracker t) {

0 commit comments

Comments
 (0)