cloudflare / cloudflare-php

PHP library for the Cloudflare v4 API
BSD 3-Clause "New" or "Revised" License
621 stars 222 forks source link

Fix PageRulesActions: setResolveOverride,setHostHeaderOverride #110

Closed iamacarpet closed 5 years ago

iamacarpet commented 5 years ago

Hello!

Great library, thank you!

I had to set up page rules & DNS records across 5+ domains for a new set of development environments that run via Cloudflare and this saved so much time compared to the web UI!!

This includes fixes for PageRulesActions::setResolveOverride and PageRulesActions::setHostHeaderOverride.

Both are Enterprise only features that take a string, but the library is only allowing a bool value for each, so I had to modify the code locally to make it work.

Hopefully this'll be helpful for somebody else too.

Regards, iamacarpet

IcyApril commented 5 years ago

Thanks for contributing!