NancyFX: Routes with query string parameters always returns a 404 NotFound

前端 未结 1 1683
南旧
南旧 2021-01-04 11:12

I have a simple Nancy module. I want to pass in query string (q-s) parameters to the handler. If I do not have any q-s params everything is fine. As soon as I add a param th

相关标签:
1条回答
  • 2021-01-04 11:37

    You don't pass in the query on the url, instead use the .Query method on the browser context

    var result = browser.Get("/", with => {
        with.Query("key", "value");
    });
    
    0 讨论(0)
提交回复
热议问题