Skip to content

Commit 9a6a0d3

Browse files
committed
docs: add upgrading and changelog
1 parent d39543e commit 9a6a0d3

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

user_guide_src/source/changelogs/v4.1.5.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ BREAKING
1313
========
1414

1515
- Fixed `a bug <https://github.com/codeigniter4/CodeIgniter4/issues/2913>`_ on CSRF protection. Now CSRF protection works on PUT/PATCH/DELETE requests when CSRF filter is applied. If you use such requests, you need to send CSRF token.
16+
- In the previous version, ``CURLRequest`` sends request headers from the browser, because of a bug. Since this version it does not send them.
1617

1718
Enhancements
1819
============

user_guide_src/source/installation/upgrade_415.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,14 @@ If you want the same behavior as the previous version, set the CSRF filter like
5353

5454
Protecting **GET** method needs only when you use ``form_open()`` auto-generation of CSRF field.
5555

56+
CURLRequest header change
57+
-------------------------
58+
59+
Because of a bug, the previous version of ``CURLRequest`` sends the request headers from the browser request.
60+
The bug was fixed. If your requests depend on the headers, your requests might fail after upgrading.
61+
In this case, add the necessary headers manually.
62+
See `CURLRequest Class <../libraries/curlrequest.html#headers>`_ for how to add.
63+
5664
Breaking Enhancements
5765
=====================
5866

0 commit comments

Comments
 (0)