mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix ip header
This commit is contained in:
1 parent
f5f82cd513
commit
b5a5633b73
2 files changed
+3
-1
No files matched your search
@@ -34,6 +34,7 @@ export default async (ctx: KoaContext, next: Next) => {
|
||||
json: (ctx.request.headers.accept || '').includes('application/json'),
|
||||
websocket: ctx.request.headers.upgrade === 'websocket',
|
||||
};
|
||||
request.ip = request.ip.split(',')[0].trim();
|
||||
const response: HydroResponse = {
|
||||
body: {},
|
||||
type: '',
|
||||
|
||||
Reference in new issue
Block a user