klever-model-registry
klever-model-registry copied to clipboard
[bug] Reverse Proxy to Harbor Returns text/plain instead of application/json
Is this a BUG REPORT or FEATURE REQUEST?:
Uncomment only one, leave it on its own line:
/kind bug /kind feature
What happened:
When we call /api/v2.0/projects/{project_name}/repositories/{repository_name}/artifacts/{reference}
to model registry, it returns text/plain response.
What you expected to happen:
Return application/json response.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
/reopen
Why we gonna change the header to application/json?
/reopen
Why we gonna change the header to application/json?
@gaocegege Do you remember, I forgot it!!!
Is there any problem here?
I remember that we had this patch because the reverse proxy cannot forward when the application is not json.
Is there any problem here?
I remember that we had this patch because the reverse proxy cannot forward when the application is not json.
If set json forcely,ormb pull will not work.
Oh, In klever, the frontend will request proxy api, maybe it is the issue。