We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe83de5 commit de83ff7Copy full SHA for de83ff7
packages/pico-engine/src/setupServer.js
@@ -102,6 +102,10 @@ module.exports = function(pe){
102
if(err) return errResp(res, err);
103
if(_.isFunction(data)){
104
data(res);
105
+ }else if(respType && funcPart[1] === "gif"){
106
+ res.header("Content-Type", respType);
107
+ res.write(Buffer.from(Uint8Array.from(data)),"binary");
108
+ res.end();
109
}else if(respType && funcPart[1] !== "json"){
110
res.header("Content-Type", respType);
111
res.end(data);
0 commit comments