No need for the intermediate copy. bigpresh/return_request_body_for_all_types
authorDavid Precious <davidp@preshweb.co.uk>
Wed, 9 Mar 2016 10:31:42 +0000 (10:31 +0000)
committerDavid Precious <davidp@preshweb.co.uk>
Wed, 9 Mar 2016 10:31:42 +0000 (10:31 +0000)
commitc9d69ced9c82f7b5ef9d7aaef492dca37c660ecd
tree8e00fa6564b94308ca1ef364df9f479cb2a4cb3c
parent2ec96b56ef1ffe8e1d2194c9ab2783f581acca9f
No need for the intermediate copy.

I had thought I needed to copy it first so the changes that the following code
make to the buffer won't be made to the raw body copy, but I'm not passing it by
reference to io_from_any() so it's already a copy, no need for two!
lib/HTTP/Body/UrlEncoded.pm