File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -557,12 +557,6 @@ void sioNetwork::sio_set_prefix()
557557 prefixSpec_str = string ((const char *)prefixSpec);
558558 prefixSpec_str = prefixSpec_str.substr (prefixSpec_str.find_first_of (" :" ) + 1 );
559559
560- // Append trailing slash if not found
561- if (prefixSpec_str.back () != ' /' )
562- {
563- prefixSpec_str += " /" ;
564- }
565-
566560#ifdef VERBOSE_PROTOCOL
567561 Debug_printf (" sioNetwork::sio_set_prefix(%s)\n " , prefixSpec_str.c_str ());
568562#endif
@@ -574,6 +568,12 @@ void sioNetwork::sio_set_prefix()
574568 }
575569 else
576570 {
571+ // Append trailing slash if not found
572+ if (prefixSpec_str.back () != ' /' )
573+ {
574+ prefixSpec_str += " /" ;
575+ }
576+
577577 // For the remaining cases, append trailing slash if not found
578578 if (prefix.back () != ' /' )
579579 {
You can’t perform that action at this time.
0 commit comments