Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
ldy
/
phwoolcon
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c3feaf3b
authored
Sep 08, 2020
by
yeran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix the bug of 204 code with content json back
1 parent
4eb5f5ee
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
src/Exception/HttpException.php
src/Exception/HttpException.php
View file @
c3feaf3
...
...
@@ -57,6 +57,9 @@ class HttpException extends RuntimeException
public
function
getBody
()
{
if
(
$this
->
getCode
()
==
204
){
return
null
;
}
return
json_encode
([
'jsonapi'
=>
[
'version'
=>
'1.0'
],
'error'
=>
$this
->
getCode
(),
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment