Tämä sivusto toimii paremmin JavaScriptillä.
Etusivu
Tutki
Apua
Rekisteröidy
Kirjaudu sisään
OpenSource
/
dify
Tarkkaile
4
Äänestä
0
Fork
0
Koodi
Ongelmat
0
Pull-pyynnöt
0
Julkaisut
152
Wiki
Activity
Selaa lähdekoodia
fix: Change API key authentication failure response code from 404 to 401 (
#6885
)
tags/0.6.16
ian
1 vuosi sitten
vanhempi
104c797dd0
commit
093f902335
No account linked to committer's email address
1 muutettua tiedostoa
jossa
1 lisäystä
ja
1 poistoa
Jaettu näkymä
Näytä diff tilastot
1
1
api/controllers/inner_api/wraps.py
+ 1
- 1
api/controllers/inner_api/wraps.py
Näytä tiedosto
@@ -19,7 +19,7 @@ def inner_api_only(view):
# get header 'X-Inner-Api-Key'
inner_api_key = request.headers.get('X-Inner-Api-Key')
if not inner_api_key or inner_api_key != dify_config.INNER_API_KEY:
abort(40
4
)
abort(40
1
)
return view(*args, **kwargs)
Write
Preview
Loading…
Peruuta
Tallenna