Skip to content

Commit

Permalink
Bugfix: Updated put request method to use 'RequestType::PUT' instead …
Browse files Browse the repository at this point in the history
…of 'RequestType::Delete' so request_shell uses the right method.
  • Loading branch information
Tickles BV committed Jul 27, 2017
1 parent 0fb0ad1 commit 4cfe68d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/LWP/Simple.pm
Expand Up @@ -41,7 +41,7 @@ method post (Str $url, %headers = {}, Any $content?) {
}

method put (Str $url, %headers = {}, Any $content?) {
self.request_shell(RequestType::DELETE, $url, %headers, $content)
self.request_shell(RequestType::PUT, $url, %headers, $content)
}

method request_shell (RequestType $rt, Str $url, %headers = {}, Any $content?) {
Expand Down

0 comments on commit 4cfe68d

Please sign in to comment.