[SR-Users] help with string modification

Daniel Tryba d.tryba at pocos.nl
Mon Nov 28 10:32:31 CET 2016


On Fri, Nov 25, 2016 at 06:55:34PM +0200, Sergey Basov wrote:
> Is it safe to use remove_hf("User-Agent") without check if this header
> exist?
> or better use if(is_present_hf("User-Agent")) { remove_hf("User-Agent"); } ?

Just remove_hf is enough. is_present_hf/remove_hf might be more readable
though.





More information about the sr-users mailing list