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

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

Closed
Akm0d opened this issue Feb 22, 2017 · 3 comments
Closed

Comments

@Akm0d
Copy link

Akm0d commented Feb 22, 2017

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'));

mptap added a commit to mptap/fbctf that referenced this issue Nov 18, 2017
@mptap
Copy link

mptap commented Nov 18, 2017

@jtylers: Please could you review? #597

@justinwray
Copy link
Contributor

@mptap

Your PR looked great. You will just need to resubmit to the dev branch.

mptap added a commit to mptap/fbctf that referenced this issue Dec 21, 2017
@mptap
Copy link

mptap commented Dec 21, 2017

@justinwray: Done! #610

@Akm0d Akm0d closed this as completed Jan 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants