Skip to content

Commit 3b93c17

Browse files
committed
Merge branch '5.3' into 5.4
* 5.3: Fix example url Fix Response HTTP constant
2 parents ce9e995 + 4a5da35 commit 3b93c17

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

http_client.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1646,7 +1646,7 @@ the response, replace the current request by another one or change the chunk
16461646
passthru itself.
16471647

16481648
Checking the test cases implemented in
1649-
:class:`Symfony\\Component\\HttpClient\\Response\\Tests\\AsyncDecoratorTraitTest`
1649+
:class:`Symfony\\Component\\HttpClient\\Tests\\AsyncDecoratorTraitTest`
16501650
might be a good start to get various working examples for a better understanding.
16511651
Here are the use cases that it simulates:
16521652

security.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1073,7 +1073,7 @@ token (or whatever you need to return) and return the JSON response:
10731073
+ if (null === $user) {
10741074
+ return $this->json([
10751075
+ 'message' => 'missing credentials',
1076-
+ ], Response::HTTP_UNAUTHENTICATED);
1076+
+ ], Response::HTTP_UNAUTHORIZED);
10771077
+ }
10781078
+
10791079
+ $token = ...; // somehow create an API token for $user

0 commit comments

Comments
 (0)