File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -7,21 +7,21 @@ This achieved by setting the following ReRoute configuration:
7
7
8
8
.. code-block :: json
9
9
10
- {
11
- "DownstreamPathTemplate": "/{url}",
12
- "UpstreamPathTemplate": "/{url}",
13
- "UpstreamHttpMethod": [
14
- "Get"
15
- ],
16
- "DownstreamHttpMethod": "POST",
17
- "DownstreamScheme": "http",
18
- "DownstreamHostAndPorts": [
19
- {
20
- "Host": "localhost",
21
- "Port": 53271
22
- }
23
- ],
24
- }
10
+ {
11
+ "DownstreamPathTemplate" : " /{url}" ,
12
+ "UpstreamPathTemplate" : " /{url}" ,
13
+ "UpstreamHttpMethod" : [
14
+ " Get"
15
+ ],
16
+ "DownstreamHttpMethod" : " POST" ,
17
+ "DownstreamScheme" : " http" ,
18
+ "DownstreamHostAndPorts" : [
19
+ {
20
+ "Host" : " localhost" ,
21
+ "Port" : 53271
22
+ }
23
+ ],
24
+ }
25
25
26
26
The key property here is DownstreamHttpMethod which is set as POST and the ReRoute will only match on GET as set by UpstreamHttpMethod.
27
27
You can’t perform that action at this time.
0 commit comments