Skip to content

Commit

Permalink
upgrade slim to latest 3.x version
Browse files Browse the repository at this point in the history
Charset was removed from Content-Type intentionally. See slimphp/Slim#2629 for reasons.
  • Loading branch information
jelhan committed Oct 30, 2019
1 parent a1c1cb8 commit 993f81f
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 21 deletions.
33 changes: 18 additions & 15 deletions api/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/tests/api/CreateAnotherUserCept.php
Expand Up @@ -16,7 +16,7 @@
$I->wantTo('create a user');
$I->sendPOST('/users', $userJson);
$I->seeResponseCodeIs(200);
$I->seeHttpHeader('Content-Type', 'application/json;charset=utf-8');
$I->seeHttpHeader('Content-Type', 'application/json');
$I->seeHttpHeader('Expires', '-1');
$I->seeResponseIsJson();
$I->seeResponseJsonMatchesJsonPath('user.id');
Expand Down
2 changes: 1 addition & 1 deletion api/tests/api/CreatePollCept.php
Expand Up @@ -6,7 +6,7 @@
$I->wantTo('create a poll');
$I->sendPOST('/polls', $pollJson);
$I->seeResponseCodeIs(200);
$I->seeHttpHeader('Content-Type', 'application/json;charset=utf-8');
$I->seeHttpHeader('Content-Type', 'application/json');
$I->seeHttpHeader('Expires', '-1');
$I->seeResponseIsJson();
$I->seeResponseJsonMatchesJsonPath('poll.id');
Expand Down
2 changes: 1 addition & 1 deletion api/tests/api/CreateUserCept.php
Expand Up @@ -12,7 +12,7 @@
$I->wantTo('create a user');
$I->sendPOST('/users', $userJson);
$I->seeResponseCodeIs(200);
$I->seeHttpHeader('Content-Type', 'application/json;charset=utf-8');
$I->seeHttpHeader('Content-Type', 'application/json');
$I->seeHttpHeader('Expires', '-1');
$I->seeResponseIsJson();
$I->seeResponseJsonMatchesJsonPath('user.id');
Expand Down
2 changes: 1 addition & 1 deletion api/tests/api/GetLegacyPollWithUsersCept.php
Expand Up @@ -17,7 +17,7 @@
$I->wantTo('get an existing legacy (v0.3.0) poll with users');
$I->sendGET('/polls/' . $pollId);
$I->seeResponseCodeIs(200);
$I->seeHttpHeader('Content-Type', 'application/json;charset=utf-8');
$I->seeHttpHeader('Content-Type', 'application/json');
$I->seeHttpHeader('Expires', '-1');
$I->seeResponseIsJson();

Expand Down
2 changes: 1 addition & 1 deletion api/tests/api/GetPollCept.php
Expand Up @@ -9,7 +9,7 @@
$I->wantTo('get an existing poll');
$I->sendGET('/polls/' . $pollId);
$I->seeResponseCodeIs(200);
$I->seeHttpHeader('Content-Type', 'application/json;charset=utf-8');
$I->seeHttpHeader('Content-Type', 'application/json');
$I->seeHttpHeader('Expires', '-1');
$I->seeResponseIsJson();

Expand Down
2 changes: 1 addition & 1 deletion api/tests/api/GetPollWithUsersCept.php
Expand Up @@ -21,7 +21,7 @@
$I->wantTo('get an existing poll');
$I->sendGET('/polls/' . $pollId);
$I->seeResponseCodeIs(200);
$I->seeHttpHeader('Content-Type', 'application/json;charset=utf-8');
$I->seeHttpHeader('Content-Type', 'application/json');
$I->seeHttpHeader('Expires', '-1');
$I->seeResponseIsJson();

Expand Down

0 comments on commit 993f81f

Please sign in to comment.