Shouldn't multiple concurent slashes be parsed as a single one? #5355
              
                Unanswered
              
          
                  
                    
                      artem-simutin
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Hey! Want to thank you for the amazing work you did on this library.
Today our team faced annoying issue with multiple slashes in the URI that we pass to the
io()call.Here is the basic code:
and this code throws an error: Invalid namespace
The problem is that it will end up:
https://api.example.com//eventswhich will treat/eventsas a namespace which is not correct.Shouldn't it replace all the multiple concurrent slashes to prevent that kind of behavior?
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions