Skip to content

Commit b42d25c

Browse files
test: ensure we emulate accept headers in dry_run test
1 parent f00def6 commit b42d25c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Tests/APICoreEndpointTestCase.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -944,6 +944,7 @@ class APICoreEndpointTestCase extends TestCase {
944944
$_SERVER['REMOTE_ADDR'] = '1.2.3.4';
945945
$_SERVER['REQUEST_METHOD'] = 'POST';
946946
$_SERVER['HTTP_CONTENT_TYPE'] = 'application/x-www-form-urlencoded';
947+
$_SERVER['HTTP_ACCEPT'] = 'application/json';
947948
$_SERVER['HTTP_PREFER'] = 'dry-run';
948949
$_SERVER['QUERY_STRING'] = 'name=prefer_dry_run_alias&type=host';
949950

0 commit comments

Comments
 (0)