Skip to content

Commit 6d0ff6a

Browse files
authored
updated as per dlepow feedback comments
1 parent 186d51a commit 6d0ff6a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

articles/api-management/api-management-faq.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ metadata:
1515
ms.topic: article
1616
ms.date: 11/19/2017
1717
ms.author: danlep
18-
ms.custom: devx-track-azurepowershell
19-
ms.custom: fasttrack-edit
18+
ms.custom: devx-track-azurepowershell, fasttrack-edit
2019

2120
title: Azure API Management FAQs
2221
summary: |
@@ -151,5 +150,5 @@ sections:
151150
- question: |
152151
How does API Management handle trailing slashes when calling backend services?
153152
answer: |
154-
Historically and by convention a URL ending with a trailing slash is treated as a Directory, for example "https://contoso.com/sample/" whereas the same URL without the trailing slash "https://contoso.com/sample" would be indicative of a file. This is not mandated, so some systems will consider those two URLs unique, whilst others will consider them the same URL. API Management doesn’t make a distinction thus a single operation "resource" will accept "resource" and "resource/". It does not make sense therefore to create an operation for each. However, whilst the distinction doesn’t matter to API Management it may matter to the backend host. Some web servers will automatically redirect a URL not ending with a trailing slash, to the same URL ending in a trailing slash. As API Management is the client to the backend (server) an automatic redirect is not always desirable. The issue can be fixed by using the [Rewrite URL policy](api-management-transformation-policies.md#RewriteURL) to ensure a trailing slash is always added to the outbound backend call.
153+
Historically and by convention a URL ending with a trailing slash is treated as a Directory, for example "https://contoso.com/sample/" whereas the same URL without the trailing slash "https://contoso.com/sample" would be indicative of a file. This is not mandated, so some systems will consider those two URLs unique, whilst others will consider them the same URL. API Management doesn’t make a distinction thus a single operation "resource" will accept "resource" and "resource/". However, whilst the distinction doesn’t matter to API Management it may matter to the backend host. Some web servers will automatically redirect a URL not ending with a trailing slash, to the same URL ending in a trailing slash. As API Management is the client to the backend (server) an automatic redirect is not always desirable. if needed create a [Rewrite URL policy](api-management-transformation-policies.md#RewriteURL) to ensure a trailing slash is always added to the outbound backend call.
155154

0 commit comments

Comments
 (0)