Replies: 1 comment
-
Hi, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Library/API/IoT binding
nanoFramework.WebServer
Visual Studio version
17.12.2
.NET nanoFramework extension version
No response
Target name(s)
No response
Firmware version
No response
Device capabilities
No response
Description
The WebServer only allows GET Requests if the Method Attribute not set
[Route("test/any")] public void RouteAnyTest(WebServerEventArgs e)
https://github.com/nanoframework/nanoFramework.WebServer/blob/57a1653346fd469f3d86b8f875e69356e8723e36/nanoFramework.WebServer/WebServer.cs#L693
if (method != (string.IsNullOrEmpty(route.Method) ? DefaultRouteMethod : route.Method))
must be changed to
if (method != (string.IsNullOrEmpty(route.Method) ? method : route.Method))
How to reproduce
No response
Expected behaviour
Allow all Methos if MethodAttribute not set
Screenshots
No response
Sample project or code
No response
Aditional information
No response
Beta Was this translation helpful? Give feedback.
All reactions