2
工作在空中的iOS分發,按照蘋果的文檔我必須設置的MIME類型的.ipa和的.plist文件,我怎麼能在興亞框架做到這一點?如何設置MIME類型興亞框架
UPDATE:
IIS can set mime-type globally like this
工作在空中的iOS分發,按照蘋果的文檔我必須設置的MIME類型的.ipa和的.plist文件,我怎麼能在興亞框架做到這一點?如何設置MIME類型興亞框架
UPDATE:
IIS can set mime-type globally like this
我找到自己的答案
app.use(async function(ctx, next){
await next();
if (ctx.url.toLowerCase().includes('.plist')) {
ctx.type = 'text/xml';
}else if (ctx.url.toLowerCase().includes('.ipa')) {
ctx.type = 'application/octet-stream';
}
});
在每隔app.use(XXX)
我刪除了我的答案,因爲我把這個中間件不熟悉你所談論的特定服務,但希望有人能夠幫助你。 – saadq