We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5cd0744 commit 27aff93Copy full SHA for 27aff93
1 file changed
lib/toxiproxy.rb
@@ -212,7 +212,7 @@ def down(&block)
212
213
# Disables a Toxiproxy. This will drop all active connections and stop the proxy from listening.
214
def disable
215
- request = Net::HTTP::Post.new("/proxies/#{name}")
+ request = Net::HTTP::Patch.new("/proxies/#{name}")
216
request["Content-Type"] = "application/json"
217
218
hash = { enabled: false }
@@ -225,7 +225,7 @@ def disable
225
226
# Enables a Toxiproxy. This will cause the proxy to start listening again.
227
def enable
228
229
230
231
hash = { enabled: true }
0 commit comments