Skip to content

Commit

Permalink
fix: cacheControl on null qcode (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
diegosz authored Apr 25, 2021
1 parent c4c7fab commit 6919574
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,9 @@ func (gj *GraphJin) GraphQL(

if qres.qc != nil {
res.sql = qres.qc.st.sql
res.cacheControl = qres.qc.st.qc.Cache.Header
if qres.qc.st.qc != nil {
res.cacheControl = qres.qc.st.qc.Cache.Header
}
}

res.Data = json.RawMessage(qres.data)
Expand Down

0 comments on commit 6919574

Please sign in to comment.