-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Under the current configuration, if the request URL ends with a slash, a 307 jump will actually occur. for example: ```bash curl --location --request POST 'http://localhost:8000/joke/invoke/' \ --header 'Content-Type: application/json' \ --data-raw '{ "input": { "topic": "cats" } }' ``` In fact, 2 requests were generated: ```bash INFO: 127.0.0.1:53936 - "POST /joke/invoke/ HTTP/1.1" 307 Temporary Redirect INFO: 127.0.0.1:53936 - "POST /joke/invoke HTTP/1.1" 200 OK ``` If this is the case, users should be directed to use the URL directly without the slashes Co-authored-by: Eugene Yurtsev <[email protected]>
- Loading branch information
Showing
1 changed file
with
17 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters