Skip to content
This repository was archived by the owner on Mar 3, 2020. It is now read-only.
This repository was archived by the owner on Mar 3, 2020. It is now read-only.

getBasesResponses should specify 'Content-Type:application/json' in curl options #466

@Akm0d

Description

@Akm0d

The function getBasesResponses() in /src/models/Level.php should specify that it is expecting to receive json data in the curl options. This gives greater flexibility to the server hosting the base challenge.

Basically, the following line of code needs to be added to line 1136 of /src/models/Level.php:
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions