Skip to content

Commit

Permalink
Merge pull request #62 from BugBountyzip/main
Browse files Browse the repository at this point in the history
Create Detect101SwitchingProtocols.bambda
  • Loading branch information
ps-porpoise authored Apr 8, 2024
2 parents 5c0f633 + c14903d commit 2997781
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Filter/Proxy/HTTP/Detect101SwitchingProtocols.bambda
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* Bambda Script to Detect "101 Switching Protocols" in HTTP Response
* @author Tur24Tur / BugBountyzip (https://github.com/BugBountyzip)
* It identifies if the HTTP response status code is 101 (Switching Protocols).
**/

// Ensure there is a response and check if the status code is 101
return requestResponse.hasResponse() && requestResponse.response().statusCode() == 101;

0 comments on commit 2997781

Please sign in to comment.