koa 返回json给前端,nginx截获乱码
发布于 8 年前 作者 Call-Me-Uncle 7191 次浏览 来自 问答

@i5ting ,狼叔和各位大神们看一下这是咋回事。 koa返json给前端,前端解析json正常。 但nginx转发截获的却是一堆不知道什么编码的字符串。 截获数据如下 :

%1F%8B%08%00%00%00%00%00%00%03%EDX%5Bk%DCF%14%FE%2F%F3%E0'w%3D3%D2H%3B%82%05%17%D3BiR%0Cu%DAB%D7,%13iv%3D%1B%AD%B4%D1%8C%EC%18%B3%0F%A5%14%1C%08M%9FRJ%5C%FAR%0A-%CDC!)%A9K%FE%8D%BD%8E%FFE%E7%A2%BD9%EB%D6q%9C%90%3A~Y%E6r%CE%99%F3%7D%E7%9B%23iw%00%2F%8A%BC%00%D1%8E%1B%B4D%02%22%B8XM%A4%D2%3B%00%0C%16A%C2%143F*W,%05%11Y%04%A9%90%0AD_%EE%00%EB%02H%C8%B1G)g%01%89I%88%DB%94P%0C%E36%05%8B%C0%EE%F7%95HZ%5D%C1%F2%ED%F2%8E%C8Z%3D%91wE-%CE%7B%CB%08%06%B5%90%D40%AD%A1%00%2F%F5%E3%96%B5%94%BC%D8%141G~%E8%FB%BE%17%84uR%F7u(%B5%DD%E7%3A%98%E2w%94%9EI%C5%94%CD%B6%ECN%CE@%1EA%D8%F3%89%F69%11%5B%E4%D2%05%2Fut%E3%DE%7D%85%CC%B4%7F%DC%2Bm%80M%9E%06%DD%DB%7DE%C2%84%7Ba%08%A1%173%DF%0B%89H%10%CC%C3%A4%E3L%9D%AD9%96K)%F2l4M%84%E6%18%5B%865%B4%19%C0%DA%2F%CF%14%CF%94a~%5C%01%83%3D%02%8C%25L%26`%A0k%93%89%F8V%C6z%86%9890t%F5%A6k%14%E8%A2%CC%D4%88%7B%C9%05%D4%88x!%82%14%D1I%8DD%8Fu%F8%25.%D2%08%F1%FC%22m%94%BD%9B%DAuC%A9~%B4%B4%E4%D2U%5C%AA%DA-)%B7%A4%FE%7D%2FN2%03`%E9%BF%12k%8DN%D3@%BB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F4%91%E5%18-%81F%A4%A7%F2%1E%B4%20%8D%BC%B3gr%11%0Axy%DE%D1%98%F7%A3%BF%EF%0F%9F|ky_7%B7'O%CAXY%9B%9D%A6%85h%CEn%82%A8%E9%CA%DC%04%8Bn%D9%DC%ACj%D9%E9m%BC%23%12%BB%AE%15S-%C9I%0CK%DEx%B9%B2%D4%84%DB%A5%5EB%EC%1C%C1%10y%A1G%F5WW%021%83n3O%DCy%EDTt6%94%5D%93yY%C4n%D5%5E%E7%26%18%80%93%1D%C0%F8i0%CE%CBb%3CG%C7%18%B5b%3D(T%CB%15%DC4%B3%00%13%CF%88%D2%252%EA%80i%9A%97%CE%BE%E0%ED2K%AE%E5RV'%5D%02v%99%94%AB)3hM%2B%CE%CA%9Em%F0%B34%EB%B9y%D0|%C8%1D%7F%22k%E7%AF%A7Y%0BU%3D'%CC%F03!%99uz%B1%8F%CF%5E%A0%C1%3C%93%ABV%7F%D5%EA%AFZ%FD%FF%AC%19%FDK%ABw%FAY%3BE%3Bfo%E5%C5%BA%1BPk%A7%5C.%B3%B72s%2B%0C%8Dm%26R%EE%FE%A3%8Ds%A9V%5DF%9E%E7%D5%A1cy27%CDs%FB%13%23w%FD9F1E%10%D7%B1%07%C3%3A%F4q%1DQ%F3_%9D%83%A0-7r%C5S%D7bYR%A6%E6e%17%9F%E5%A3e%7D0%F8%07%0A%CF%02CC%16%00%00
2 回复

看看response header

URI转码试过?

回到顶部